CN108564985A - EMMC (embedded multi-media card) testing method and device, mobile terminal and storage medium - Google Patents
EMMC (embedded multi-media card) testing method and device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN108564985A CN108564985A CN201810220433.6A CN201810220433A CN108564985A CN 108564985 A CN108564985 A CN 108564985A CN 201810220433 A CN201810220433 A CN 201810220433A CN 108564985 A CN108564985 A CN 108564985A
- Authority
- CN
- China
- Prior art keywords
- test
- capacity
- emmc
- function
- acquisition
- 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
Links
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
本发明提供了一种EMMC测试方法、装置、移动终端及存储介质,所述方法包括:当接收到EMMC更换信号时,获取本地存储测试程序,并根据所述测试程序对当前EMMC进行功能测试,以得到测试结果;获取所述测试结果中最大值与最小值之间的波动差值,并判断所述波动差值是否在对应的预设误差范围内;若是,则判定测试通过;若否,则判定测试不通过,本发明自动化程度较高无需工作人员发出检测信号和对EMMC的检测操作,提高了用户体验,且EMMC测试方法可以同时对多个测试功能对象的功能进行测试,并采用波动差值与对应预设误差范围的判断方式进行功能稳定的判断,提高了测试的准确性。
The present invention provides a kind of EMMC test method, device, mobile terminal and storage medium, described method comprises: when receiving EMMC replacement signal, obtain local storage test program, and carry out function test to current EMMC according to described test program, to obtain the test result; obtain the fluctuation difference between the maximum value and the minimum value in the test result, and determine whether the fluctuation difference is within the corresponding preset error range; if so, determine that the test is passed; if not, Then it is judged that the test does not pass, and the present invention has a high degree of automation without the need for staff to send detection signals and detection operations to EMMC, which improves user experience, and the EMMC testing method can simultaneously test the functions of a plurality of test function objects, and adopt fluctuations The difference value and the judgment method corresponding to the preset error range are used to judge the function stability, which improves the accuracy of the test.
Description
技术领域technical field
本发明涉及EMMC技术领域,特别涉及一种EMMC测试方法、装置、移动终端及存储介质。The invention relates to the technical field of EMMC, in particular to an EMMC testing method, device, mobile terminal and storage medium.
背景技术Background technique
随EMMC全称为Embedded MultiMedia Card,是一种嵌入式非易失性存储器系统,由闪存和闪存控制器两部组成。EMMC的一个明显优势是在封装中集成了一个闪存控制器,它采用BGA封装,并采用统一闪存接口管理闪存。EMMC现在的目标应用是对存储容量有较高要求的消费电子产品,它规格的标准逐渐从EMMC4.3世代发展到EMMC4.5世代,EMMC5.0也已问世。EMMC具有统一、高速的数据接口从而实现前后兼容、存储密度高。其电路简单,成本很低,开发容易,是的EMMC被广泛得应用,在EMMC的使用过程中当对EMMC进行了更换时,必须要对更换后的EMMC进行功能稳定性的测试,以判定更换后的EMMC是否能满足用户的需求,从而保障板卡功能的稳定,因此人们对EMMC的测试问题越来越重视。The full name of EMMC is Embedded MultiMedia Card, which is an embedded non-volatile memory system consisting of flash memory and flash memory controller. A distinct advantage of EMMC is the integration of a flash controller in the package, which is packaged in BGA and manages the flash memory with a unified flash interface. The current target application of EMMC is consumer electronics products with high requirements for storage capacity. Its specification standard has gradually developed from EMMC4.3 generation to EMMC4.5 generation, and EMMC5.0 has also come out. EMMC has a unified, high-speed data interface to achieve forward and backward compatibility and high storage density. The circuit is simple, the cost is very low, and the development is easy. Yes, EMMC is widely used. When EMMC is replaced during the use of EMMC, it is necessary to test the functional stability of the replaced EMMC to determine the replacement. Whether the latest EMMC can meet the needs of users, so as to ensure the stability of the board function, so people pay more and more attention to the testing of EMMC.
现有的EMMC测试方法是采用人工测试方法进行EMMC的测试,即当对EMMC更换后记录EMMC的位置编号后,根据记录到的位置编号手动对应的进行测试。Existing EMMC test method is to adopt artificial test method to carry out the test of EMMC, promptly after the position number of EMMC is recorded after EMMC is replaced, according to the position number recorded manually corresponding test is carried out.
现有的EMMC测试方法中由于采用人工测试的方式进行EMMC功能的检测,进而导致工作人员的操作过于复杂、降低了测试效率、自动化程度较低且提高了人员成本。In the existing EMMC test method, because the EMMC function is detected by manual testing, the operation of the staff is too complicated, the test efficiency is reduced, the degree of automation is low, and the personnel cost is increased.
发明内容Contents of the invention
基于此,本发明实施例的目的在于提供一种当EMMC进行了更换时,自动测试更换后的EMMC功能的EMMC测试方法、装置、移动终端及存储介质。Based on this, the object of the embodiments of the present invention is to provide an EMMC testing method, device, mobile terminal and storage medium for automatically testing the function of the replaced EMMC when the EMMC is replaced.
第一方面,本发明提供了一种EMMC测试方法,所述方法包括:First aspect, the present invention provides a kind of EMMC testing method, described method comprises:
当接收到EMMC更换信号时,获取本地存储测试程序,并根据所述测试程序对当前EMMC进行功能测试,以得到测试结果;When receiving the EMMC replacement signal, obtain the local storage test program, and carry out the functional test to the current EMMC according to the test program, to obtain the test result;
获取所述测试结果中最大值与最小值之间的波动差值,并判断所述波动差值是否在对应的预设误差范围内;Obtaining the fluctuation difference between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference is within a corresponding preset error range;
若是,则判定测试通过;If so, it is judged that the test is passed;
若否,则判定测试不通过。If not, it is determined that the test fails.
上述EMMC测试方法,通过对所述EMMC更换信号的接收设计,以使判定是否开启所述EMMC测试方法,使得所述EMMC测试方法具有自动化测试的功能,进而降低了人员成本且提高了对所述当前EMMC的测试效率,通过所述测试程序的获取设计,以使针对性的对所述测试功能对象的功能进行测试,进而提高了所述EMMC测试方法的准确性,通过所述测试结果中最大值与最小值之间的所述波动差值,以使方便了所述波动差值与所述预设误差范围的判定,且通过采用所述波动差值与所述误差范围的判断方式,以使可准确的判定所述波动差值对应的所述测试功能对象的功能是否稳定,上述EMMC测试方法当接收到所述EMMC更换信号时自动开启对所述当前EMMC功能的检测,自动化程度较高无需工作人员发出检测信号和对EMMC的检测的操作,提高了用户体验,且所述EMMC测试方法可以同时对多个所述测试功能对象的功能进行测试,并通过采用所述波动差值与对应所述预设误差范围的判断方式进行功能稳定的判断,提高了测试的准确性。Above-mentioned EMMC testing method, by changing the receiving design of signal to described EMMC, so that judge whether to open described EMMC testing method, make described EMMC testing method have the function of automated testing, and then reduce personnel cost and improve the described EMMC testing method The test efficiency of current EMMC, by the acquisition design of described test program, so that the function of described test function object is tested in a targeted manner, and then the accuracy of described EMMC test method has been improved, by the maximum in described test result The fluctuation difference between the value and the minimum value facilitates the judgment of the fluctuation difference and the preset error range, and by using the judgment method of the fluctuation difference and the error range, the Can accurately determine whether the function of the described test function object corresponding to the fluctuation difference is stable, and the above-mentioned EMMC test method automatically starts the detection of the current EMMC function when receiving the EMMC replacement signal, and the degree of automation is higher Without the need for staff to send detection signals and the detection of EMMC, the user experience is improved, and the EMMC testing method can simultaneously test the functions of a plurality of test function objects, and by using the fluctuation difference and the corresponding The judgment method of the preset error range can judge the function stability, which improves the accuracy of the test.
进一步地,所述根据所述测试程序对当前EMMC进行功能测试的步骤包括:Further, the described step of carrying out function test to current EMMC according to described test procedure comprises:
获取本地存储的测试块容量,并按预设获取规则依序获取预设容量范围内的多个测试容量;Obtain the test block capacity of the local storage, and sequentially obtain multiple test capacities within the preset capacity range according to the preset acquisition rules;
根据所述测试块容量依序对每个所述测试容量执行所述测试程序。The test program is sequentially executed for each of the test volumes according to the test block volume.
进一步地,当所述测试程序的所述测试功能对象为向新文件写入的功能时,所述根据所述测试块容量依序对每个所述测试容量执行所述测试程序的步骤包括:Further, when the test function object of the test program is a function of writing to a new file, the step of sequentially executing the test program for each test capacity according to the test block capacity includes:
依序获取每个所述测试容量的值,并根据所述测试容量的值以创建对应相同容量大小的多个新文件;Acquiring the value of each test capacity in sequence, and creating a plurality of new files corresponding to the same capacity according to the value of the test capacity;
以所述测试块容量为填充单位分别向每个所述新文件中填充数据,直至将每个所述新文件填充满,以计算每个所述新文件对应的填充时间;Filling data into each of the new files with the test block capacity as the filling unit, until each of the new files is filled, so as to calculate the filling time corresponding to each of the new files;
根据所述新文件的容量大小和对应的所述填充时间以计算得到多个填充速度,并将每个所述填充速度与对应的所述新文件的容量大小的对应关系进行存储,以得到所述向新文件写入的功能对应的所述测试结果。Multiple filling speeds are calculated according to the capacity of the new file and the corresponding filling time, and the corresponding relationship between each filling speed and the corresponding capacity of the new file is stored, so as to obtain the The test result corresponding to the function of writing to the new file.
进一步地,当所述测试程序的所述测试功能对象为读已存在文件的功能时,所述根据所述测试块容量依序对每个所述测试容量执行所述测试程序的步骤包括;Further, when the test function object of the test program is a function of reading an existing file, the step of sequentially executing the test program for each test capacity according to the test block capacity includes;
依序获取每个所述测试容量的值,并根据所述测试容量的值以获取对应相同容量大小的多个旧文件;Acquiring the value of each test capacity in sequence, and obtaining a plurality of old files corresponding to the same capacity according to the value of the test capacity;
以所述测试块容量为填充单位分别对每个所述旧文件中的数据进行读取,直至将每个所述旧文件读取完毕,以计算每个所述旧文件对应的读取时间;Reading the data in each of the old files with the test block capacity as the filling unit until each of the old files is read, so as to calculate the reading time corresponding to each of the old files;
根据所述旧文件的容量大小和对应的所述读取时间以计算得到多个读取速度,并将每个所述读取速度与对应的所述旧文件的容量大小的对应关系进行存储,以得到所述读已存在文件的功能对应的所述测试结果。calculating a plurality of reading speeds according to the capacity of the old file and the corresponding reading time, and storing the corresponding relationship between each reading speed and the corresponding capacity of the old file, In order to obtain the test result corresponding to the function of reading an existing file.
进一步地,所述预设获取规则中采用的获取公式为:Further, the acquisition formula adopted in the preset acquisition rule is:
W=Y×2n;W=Y×2 n ;
所述获取公式中,n的值取自然数,Y的值为本地存储的基础测试容量的大小,W的值为目标文件的容量,所述目标文件的容量用于所述测试容量的获取。In the acquisition formula, the value of n is a natural number, the value of Y is the size of the basic test capacity stored locally, and the value of W is the capacity of the target file, which is used to acquire the test capacity.
进一步地,所述按预设获取规则依序获取预设容量范围内的多个测试容量的步骤包括:Further, the step of sequentially acquiring a plurality of test capacities within a preset capacity range according to preset acquisition rules includes:
获取本地存储的所述基础测试容量的大小,并获取所述预设容量范围内的最大值阈值;Obtain the size of the basic test capacity stored locally, and obtain the maximum threshold value within the preset capacity range;
根据所述获取公式,将W设置为所述最大值阈值以计算n阈值;According to the acquisition formula, W is set as the maximum value threshold to calculate the n threshold;
获取0至所述n阈值之间的所有自然数,并分别将所述所有自然数代入至所述获取公式,以计算得到多个所述目标文件的容量;Acquiring all natural numbers between 0 and the n threshold, and respectively substituting the all natural numbers into the acquisition formula to calculate the capacity of multiple target files;
根据多个所述目标文件的容量依序在所述预设容量范围内获取相同大小的容量,以得到多个所述测试容量。The capacity of the same size is sequentially acquired within the preset capacity range according to the capacities of the plurality of target files, so as to obtain a plurality of the test capacities.
第二方面,本发明提供了一种EMMC测试装置,包括:Second aspect, the present invention provides a kind of EMMC testing device, comprising:
测试模块,用于当接收到EMMC更换信号时,获取本地存储测试程序,并根据所述测试程序对当前EMMC进行功能测试,以得到测试结果;Test module, for when receiving EMMC replacement signal, obtain local storage test program, and carry out function test to current EMMC according to said test program, to obtain test result;
判断模块,用于获取所述测试结果中最大值与最小值之间的波动差值,并判断所述波动差值是否在对应的预设误差范围内;A judging module, configured to obtain a fluctuation difference between the maximum value and the minimum value in the test result, and judge whether the fluctuation difference is within a corresponding preset error range;
判定模块,用于当所述判断模块判断到所述波动差值在所述预设误差范围内时,判定测试通过,当所述判断模块判断到所述波动差值不在所述预设误差范围内时,判定测试不通过。A determination module, configured to determine that the test passes when the determination module determines that the fluctuation difference is within the preset error range, and when the determination module determines that the fluctuation difference is not within the preset error range When it is within, it is determined that the test fails.
上述EMMC测试装置,通过所述测试模块对所述EMMC更换信号的接收设计,以使判定是否开启所述EMMC测试方法,使得所述EMMC测试方法具有自动化测试的功能,进而降低了人员成本且提高了对所述当前EMMC的测试效率,通过所述测试程序的获取设计,以使针对性的对所述测试功能对象的功能进行测试,进而提高了所述EMMC测试方法的准确性,通过所述判断模块所述测试结果中最大值与最小值之间的所述波动差值,以使方便了所述波动差值与所述预设误差范围的判定,且通过所述判定模块采用所述波动差值与所述误差范围的判断方式,以使可准确的判定所述波动差值对应的所述测试功能对象的功能是否稳定,上述EMMC测试装置当接收到所述EMMC更换信号时自动开启对所述当前EMMC功能的检测,自动化程度较高无需工作人员发出检测信号,提高了用户体验,且所述EMMC测试装置可以同时对多个所述测试功能对象的功能进行测试,并通过采用所述波动差值与对应所述预设误差范围的判断方式进行功能稳定的判断,提高了测试的准确性。Above-mentioned EMMC testing device, by described test module, changes the receiving design of signal to described EMMC, so that judge whether to open described EMMC testing method, make described EMMC testing method have the function of automated testing, and then reduce personnel cost and improve Improve the test efficiency to described current EMMC, obtain design by described test program, so that the function of described test function object is tested targetedly, and then the accuracy of described EMMC test method is improved, by described The fluctuation difference between the maximum value and the minimum value in the test result of the judgment module, so as to facilitate the judgment of the fluctuation difference and the preset error range, and the fluctuation difference is adopted by the judgment module Difference value and the judging mode of described error range, so that can accurately determine whether the function of the described test function object corresponding to described fluctuation difference value is stable, above-mentioned EMMC testing device automatically opens pair when receiving described EMMC replacement signal The detection of described current EMMC function, automation degree is higher need not the staff to send detection signal, has improved user experience, and described EMMC testing device can test the function of a plurality of described test function objects simultaneously, and by adopting described The fluctuation difference and the judgment method corresponding to the preset error range are used to judge the function stability, which improves the accuracy of the test.
第三方面,本发明提供了一种移动终端,包括存储器以及处理器,所述存储器用于存储计算机程序,所述处理器运行所述计算机程序以使所述移动终端执行上述的EMMC测试方法。In a third aspect, the present invention provides a mobile terminal, including a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the mobile terminal to execute the above-mentioned EMMC testing method.
第四方面,本发明提供了一种存储介质,其上存储有上述移动终端中所使用的计算机程序。In a fourth aspect, the present invention provides a storage medium on which the computer program used in the above mobile terminal is stored.
附图说明Description of drawings
图1为本发明第一实施例提供的EMMC测试方法的流程图;Fig. 1 is the flow chart of the EMMC testing method that the first embodiment of the present invention provides;
图2为本发明第二实施例提供的EMMC测试方法的流程图;Fig. 2 is the flowchart of the EMMC testing method that the second embodiment of the present invention provides;
图3为图2中步骤S21的具体实施步骤;Fig. 3 is the specific implementation steps of step S21 in Fig. 2;
图4为本发明第三实施例提供的EMMC测试装置的结构示意图;Fig. 4 is the structural representation of the EMMC testing device that the third embodiment of the present invention provides;
图5为本发明第四实施例提供的EMMC测试装置的结构示意图;Fig. 5 is the structural representation of the EMMC testing device that the fourth embodiment of the present invention provides;
具体实施方式Detailed ways
为了便于更好地理解本发明,下面将结合相关实施例附图对本发明进行进一步地解释。附图中给出了本发明的实施例,但本发明并不仅限于上述的优选实施例。相反,提供这些实施例的目的是为了使本发明的公开面更加得充分。In order to facilitate a better understanding of the present invention, the present invention will be further explained below in conjunction with the accompanying drawings of related embodiments. Embodiments of the invention are shown in the drawings, but the invention is not limited to the preferred embodiments described above. Rather, these embodiments are provided so that the disclosure of the invention will be more thorough.
在板卡的使用过程中,当板卡上任意一EMMC进行了更换时,必须要对更换后的EMMC进行功能稳定性的测试,以判定更换后的EMMC是否能满足用户的需求,从而保障板卡功能的稳定,但由于现有的测试方式是采用人工测试的方式进行EMMC的检测,即当对EMMC更换后记录EMMC的位置编号后,根据记录到的位置标号手动对应的进行测试,进而导致工作人员的工作过于复杂,降低了测试效率且自动化程度较低,因此本发明提供一种当进行了EMMC更换后,自动对更换后的EMMC进行功能测试的EMMC测试方法、装置、移动终端及存储介质,以降低工作人员的工作步骤、提高测试效率、降低人员成本、自动化程度较高。During the use of the board, when any EMMC on the board is replaced, it is necessary to test the functional stability of the replaced EMMC to determine whether the replaced EMMC can meet the needs of users, so as to ensure the stability of the board. The function of the card is stable, but because the existing test method is to use manual testing to detect the EMMC, that is, after the EMMC is replaced and the position number of the EMMC is recorded, the corresponding test is performed manually according to the recorded position label, which leads to The work of the staff is too complicated, which reduces the test efficiency and the degree of automation is low. Therefore, the present invention provides a kind of EMMC testing method, device, mobile terminal and storage device that automatically carry out functional testing to the EMMC after the replacement after the EMMC is replaced. Medium, to reduce the working steps of staff, improve test efficiency, reduce personnel costs, and have a high degree of automation.
请参阅图1,为本发明第一实施例提供的EMMC测试方法的流程图,包括步骤S10至S50。Please refer to FIG. 1 , which is a flow chart of the EMMC testing method provided by the first embodiment of the present invention, including steps S10 to S50 .
步骤S10,当接收到EMMC更换信号时,获取本地存储的测试程序,并根据所述测试程序对当前EMMC进行功能测试,以得到测试结果;Step S10, when receiving the EMMC replacement signal, obtain the test program of local storage, and carry out function test to current EMMC according to said test program, to obtain test result;
其中,本实施例中时刻对EMMC是否进行了更换进行检测,以使当检测到了EMMC进行了更换时,即接收到了所述EMMC更换信号时,自动开启对所述当前EMMC的测试流程,对EMMC是否进行了更换所采用的检测方式可以为,时刻检测EMMC任意一引脚与板卡是否处于电性连接状态以判定是否进行了EMMC的更换,或采用时刻检测EMMC预设引脚上的电压的方式进行更换的判断,可以理解的本实施例不仅限于上述判定方式进行判断。Wherein, in the present embodiment, whether the EMMC has been replaced at all times is detected, so that when it is detected that the EMMC has been replaced, that is, when the EMMC replacement signal is received, the test process to the current EMMC is automatically opened, and the EMMC is automatically opened. Whether it has been replaced can be detected by detecting whether any pin of the EMMC is electrically connected to the board at any time to determine whether the replacement of the EMMC is performed, or by constantly detecting the voltage on the preset pin of the EMMC It can be understood that this embodiment is not limited to the above-mentioned judgment method for judgment.
本实施例中通过所述EMMC更换信号的接收设计,以使判定是否开启所述EMMC测试方法,使得所述EMMC测试方法具有自动化测试的功能,进而降低了人员成本且提高了对所述当前EMMC的测试效率。In the present embodiment, the reception design of the replacement signal by the EMMC is used to determine whether to open the EMMC test method, so that the EMMC test method has the function of automated testing, thereby reducing personnel costs and improving the understanding of the current EMMC. test efficiency.
本实施例并通过对所述测试程序的获取设计,以使针对性的对所述测试功能对象的功能进行测试,进而提高了所述EMMC测试方法的准确性,并运行获取到的所述测试程序以得到所述测试结果。In this embodiment, by obtaining the design of the test program, the function of the test function object is tested in a targeted manner, thereby improving the accuracy of the EMMC test method, and running the obtained test. program to obtain the test results.
具体的,所述测试程序的执行功能可以为测试所述当前EMMC的向一个新文件写入的功能、向一个已存在的文件写入的功能、读取一个已存在的文件的功能、读取一个最近读过的文件的功能、读一个文件中的随机偏移量的功能、写一个文件中的随机偏移量的功能、调用函数写文件的功能、调用函数读文件的功能中的任意一种,可以理解的本地存储的所述测试程序的数量可以为多个。Specifically, the execution function of the test program can be to test the function of writing to a new file of the current EMMC, the function of writing to an existing file, the function of reading an existing file, and reading Any of a recently read file function, a function to read a random offset in a file, a function to write a random offset in a file, a function to call a function to write a file, or a function to call a function to read a file In other words, it can be understood that the number of the test programs stored locally may be multiple.
步骤S20,获取所述测试结果中最大值与最小值之间的波动差值,并判断所述波动差值是否在对应的预设误差范围内;Step S20, obtaining the fluctuation difference between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference is within the corresponding preset error range;
其中,通过计算所述测试结果中最大值与最小值之间的所述波动差值,以使方便了所述波动差值与所述预设误差范围的判定;Wherein, the determination of the fluctuation difference and the preset error range is facilitated by calculating the fluctuation difference between the maximum value and the minimum value in the test result;
具体的,所述测试结果中的最大值与最小值均为速度结果,即可以为对一文件写入数据的速度或读取数据的速度等,且不同所述测试程序的所述测试结果对应的所述预设误差范围可以相同也可以不同。Specifically, the maximum value and the minimum value in the test results are speed results, that is, the speed of writing data to a file or the speed of reading data, etc., and the test results of different test programs correspond to The preset error ranges can be the same or different.
当所述步骤S20判断到所述测试程序对应的所述波动差值在所述预设误差范围内时,执行步骤S30。When it is determined in step S20 that the fluctuation difference corresponding to the test program is within the preset error range, step S30 is executed.
步骤S30,判定所述当前EMMC中所述测试程序的测试功能对象功能稳定;Step S30, determine that the test function object function of the test program described in the current EMMC is stable;
其中,即判定所述测试功能对象测试通过。Wherein, it is judged that the test of the test function object is passed.
当所述步骤S20判断到所述测试程序对应的所述波动差值不在所述预设误差范围内时,执行步骤S40。When it is determined in step S20 that the fluctuation difference corresponding to the test program is not within the preset error range, step S40 is executed.
步骤S40,判定所述当前EMMC中所述测试程序的测试功能对象功能不稳定;Step S40, determining that the function of the test function object of the test program in the current EMMC is unstable;
其中,即判定所述测试功能对象测试不通过。Wherein, it is determined that the test of the test function object fails.
步骤S50,获取所述测试功能对象的名称及功能判定结果,并将所述名称与对应的所述判定结果进行对应关系显示。Step S50, acquiring the name and function determination result of the test function object, and displaying the corresponding relationship between the name and the corresponding determination result.
其中,当本地存储的所述测试程序的数量为多个时,通过分别运行不同所述测试程序得到所述测试结果,并对不同所述测试结果中的所述波动差值进行判定得到所述判定结果后,将所述名称与对应的所述判定结果进行对应显示,以使方便了用户查看所述当前EMMC中各个功能是否稳定。Wherein, when there are multiple test programs stored locally, the test results are obtained by running different test programs respectively, and the fluctuation difference in the different test results is determined to obtain the After the determination result, the name and the corresponding determination result are displayed correspondingly, so that it is convenient for the user to check whether each function in the current EMMC is stable.
本实施例通过对所述EMMC更换信号的接收设计,以使判定是否开启所述EMMC测试方法,使得所述EMMC测试方法具有自动化测试的功能,进而降低了人员成本且提高了对所述当前EMMC的测试效率,通过所述测试程序的获取设计,以使针对性的对所述测试功能对象的功能进行测试,进而提高了所述EMMC测试方法的准确性,通过所述测试结果中最大值与最小值之间的所述波动差值,以使方便了所述波动差值与所述预设误差范围的判定,且通过采用所述波动差值与所述误差范围的判断方式,以使可准确的判定所述波动差值对应的所述测试功能对象的功能是否稳定,上述EMMC测试方法当接收到所述EMMC更换信号时自动开启对所述当前EMMC功能的检测,自动化程度较高无需工作人员发出检测信号和对EMMC的检测的操作,提高了用户体验,且所述EMMC测试方法可以同时对多个所述测试功能对象的功能进行测试,并通过采用所述波动差值与对应所述预设误差范围的判断方式进行功能稳定的判断,提高了测试的准确性。The present embodiment changes the receiving design of signal by described EMMC, so that judge whether to open described EMMC test method, make described EMMC test method have the function of automatic test, and then reduce personnel cost and improve described current EMMC The test efficiency, through the acquisition design of described test program, so that the function of described test function object is tested in a targeted manner, and then the accuracy of described EMMC test method is improved, through the maximum value in the test result and The fluctuation difference between the minimum values facilitates the determination of the fluctuation difference and the preset error range, and by using the judgment method of the fluctuation difference and the error range, it is possible to Accurately determine whether the function of the described test function object corresponding to the fluctuation difference is stable, and the above-mentioned EMMC test method automatically starts the detection of the current EMMC function when receiving the EMMC replacement signal, and the degree of automation is higher without work The operation of personnel sending detection signal and the detection of EMMC has improved user experience, and described EMMC test method can test the function of a plurality of described test function objects simultaneously, and by adopting described fluctuation difference and corresponding described The judgment method of the preset error range is used to judge the function stability, which improves the accuracy of the test.
请参阅图2,为本发明第二实施例提供的EMMC测试方法的流程图,所述方法包括步骤S11至S121。Please refer to FIG. 2 , which is a flow chart of the EMMC testing method provided by the second embodiment of the present invention, the method includes steps S11 to S121 .
步骤S11,当接收到EMMC更换信号时,获取本地存储的测试程序;Step S11, when receiving the EMMC replacement signal, obtain the locally stored test program;
其中,本实施例中时刻对EMMC是否进行了更换进行检测,以使当检测到了EMMC进行了更换时,即接收到了所述EMMC更换信号时,自动开启对所述当前EMMC的测试流程,对EMMC是否进行了更换所采用的检测方式可以为,时刻检测EMMC任意一引脚与板卡是否处于电性连接状态以判定是否进行了EMMC的更换,或采用时刻检测EMMC预设引脚上的电压的方式进行更换的判断,可以理解的本实施例不仅限于上述判定方式进行判断。Wherein, in the present embodiment, whether the EMMC has been replaced at all times is detected, so that when it is detected that the EMMC has been replaced, that is, when the EMMC replacement signal is received, the test process to the current EMMC is automatically opened, and the EMMC is automatically opened. Whether it has been replaced can be detected by detecting whether any pin of the EMMC is electrically connected to the board at any time to determine whether the replacement of the EMMC is performed, or by constantly detecting the voltage on the preset pin of the EMMC It can be understood that this embodiment is not limited to the above-mentioned judgment method for judgment.
本实施例中通过所述EMMC更换信号的接收设计,以使判定是否开启所述EMMC测试方法,使得所述EMMC测试方法具有自动化测试的功能,进而降低了人员成本且提高了对所述当前EMMC的测试效率。In the present embodiment, the reception design of the replacement signal by the EMMC is used to determine whether to open the EMMC test method, so that the EMMC test method has the function of automated testing, thereby reducing personnel costs and improving the understanding of the current EMMC. test efficiency.
步骤S21,获取本地存储的测试块容量,并按预设获取规则依序获取预设容量范围内的多个测试容量;Step S21, obtain the test block capacity stored locally, and sequentially obtain multiple test capacities within the preset capacity range according to the preset acquisition rules;
所述预设获取规则中采用的获取公式为:The acquisition formula adopted in the preset acquisition rule is:
W=Y×2n;W=Y×2 n ;
所述获取公式中,n的值取自然数,Y的值为本地存储的基础测试容量的大小,W的值为目标文件的容量,所述目标文件的容量用于所述测试容量的获取;In the acquisition 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 the acquisition of the test capacity;
具体的当所述预设容量范围为4K至1G容量范围,所述基础测试容量为4K时,通过设置不同的n的值以计算所述目标文件的容量,例如n依序设置为0、1、2、3、4时,对应的所述目标文件的容量为4K、8K、16K、32K、64K,并根据计算到的所述目标文件的容量获取大小相同的容量,以得到多个所述测试容量,即所述测试容量依序为4K、8K、16K、32K、64K。Specifically, when the preset capacity range is 4K to 1G capacity range, and the basic test capacity is 4K, the capacity of the target file is calculated by setting different n values, for example, n is set to 0 and 1 in sequence , 2, 3, and 4, the corresponding capacity of the target file is 4K, 8K, 16K, 32K, 64K, and the capacity of the same size is obtained according to the calculated capacity of the target file, so as to obtain multiple The test capacity, that is, the test capacity is 4K, 8K, 16K, 32K, and 64K in sequence.
请参阅图3,为图2中步骤S21的具体实施步骤:Please refer to Fig. 3, which is the specific implementation steps of step S21 in Fig. 2:
步骤S201,获取本地存储的所述基础测试容量的大小,并获取所述预设容量范围内的最大值阈值;Step S201, obtaining the size of the basic test capacity stored locally, and obtaining the maximum threshold value within the preset capacity range;
本实施例中,所述基础测试容量的大小为4K,所述预设容量范围内的最大值阈值为1G;In this embodiment, the size of the basic test capacity is 4K, and the maximum threshold value within the preset capacity range is 1G;
步骤S202,根据所述获取公式,将W设置为所述最大值阈值以计算n阈值;Step S202, according to the acquisition formula, set W as the maximum value threshold to calculate the n threshold;
其中以计算得到所述n阈值为18,通过所述n阈值的计算以获取n的取值范围,由于所述测试容量必须在所述预设容量范围内进行获取,且所述测试容量的最大值的容量大小等于最大所述目标文件的容量大小,因此要进行所述n阈值的计算,以防止所述目标文件大小的无效计算,提高了所述EMMC测试放大的测试效率;Wherein, the n threshold value obtained by calculation is 18, and the value range of n is obtained through the calculation of the n threshold value, since the test capacity must be acquired within the preset capacity range, and the maximum of the test capacity The capacity size of value is equal to the capacity size of maximum described target file, therefore will carry out the calculation of described n threshold, to prevent the invalid calculation of described target file size, has improved the testing efficiency of described EMMC test amplification;
步骤S203,获取0至所述n阈值之间的所有自然数,并分别将所述所有自然数代入至所述获取公式,以计算得到多个所述目标文件的容量;Step S203, obtaining all natural numbers between 0 and the n threshold, and respectively substituting the all natural numbers into the obtaining formula to calculate the capacity of multiple target files;
其中,获取0至18之间的所有自然数,即0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、16、17、18,并将其代入至所述获取公式的n,可以计算得到多个目标文件的容量,即4K、8K、16K、32K、64K、128K、256K、512K、1024K、2048K、4096K、8192K、16387K、32768K、65536K、131072K、262144K、524288K、1048576K;Among them, get 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, 18 , and substituting it into n in the acquisition formula can calculate the capacity of multiple target files, namely 4K, 8K, 16K, 32K, 64K, 128K, 256K, 512K, 1024K, 2048K, 4096K, 8192K, 16387K, 32768K, 65536K, 131072K, 262144K, 524288K, 1048576K;
步骤S204,根据多个所述目标文件的容量依序在所述预设容量范围内获取相同大小的容量,以得到多个所述测试容量;Step S204, according to the capacity of the plurality of target files, sequentially acquire the capacity of the same size within the preset capacity range, so as to obtain a plurality of the test capacity;
其中,根据计算得到的多个所述目标文件的容量以在所述预设容量范围内进行所述测试容量的获取。Wherein, the acquisition of the test capacity is performed within the preset capacity range according to the calculated capacities of the plurality of target files.
当步骤S11中的所述测试程序的测试功能对象为向新文件写入的功能时,执行步骤S31。When the test function object of the test program in step S11 is the function of writing to a new file, step S31 is executed.
步骤S31,依序获取每个所述测试容量的值,并根据所述测试容量的值以创建对应相同容量大小的多个新文件;Step S31, obtaining the value of each test capacity in sequence, 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 multiple values of the test capacity acquired above, so as to provide a basis for filling the new file with data.
步骤S41,以所述测试块容量为填充单位分别向每个所述新文件中填充数据,直至将每个所述新文件填充满,以计算每个所述新文件对应的填充时间;Step S41, using the test block capacity as a filling unit to fill data into each of the new files, until each of the new files is full, so as to calculate the filling time corresponding to each of the new files;
具体的,当所述测试容量的值为8K时,以4K为所述填充单位向8K的所述新文件进行数据填充,并当将8K的所述新文件填充满时,获取当前的所述填充时间,可以理解的其它大小的所述新文件均采用上述方式进行数据的填充和所述填充时间的获取,以得到多个所述填充时间,优选的,本实施例中所述填充时间的数量与n的取值数量相等,即本实施例中为18个。Specifically, when the value of the test capacity is 8K, the 8K new file is filled with data using 4K as the filling unit, and when the 8K new file is fully filled, the current Filling time, it can be understood that the new files of other sizes are filled with data and acquired with the filling time in the above manner, so as to obtain multiple filling times, preferably, the filling time in this embodiment The number is equal to the number of values of n, that is, 18 in this embodiment.
步骤S51,根据所述新文件的容量大小和对应的所述填充时间以计算得到多个填充速度,并将每个所述填充速度与对应的所述新文件的容量大小的对应关系进行存储;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 relationship between each filling speed and the corresponding capacity of the new file;
其中,通过计算所述填充速度的设计,以使得到所述向新文件写入的功能对应的所述测试结果,所述测试结果中包含多个不同所述测试容量与对应所述填充速度的对应关系,通过将对应关系进行存储的设计,以使可以方便用户对所述当前EMMC芯片的所述向新文件写入的功能性能的查看,提高了用户的体验。Wherein, by calculating the design of the filling speed, the test result corresponding to the function of writing to the new file is obtained, and the test result includes a plurality of different test capacities and corresponding filling speeds. The corresponding relationship is designed to store the corresponding relationship, so that the user can conveniently check the functional performance of the current EMMC chip written to the new file, which improves the user experience.
当步骤S11中的所述测试程序的测试功能对象为读已存在文件的功能时,执行步骤S61。When the test function object of the test program in step S11 is the function of reading an existing file, step S61 is executed.
步骤S61,依序获取每个所述测试容量的值,并根据所述测试容量的值以获取对应相同容量大小的多个旧文件;Step S61, obtaining the value of each test capacity in sequence, and obtaining a plurality of old files corresponding to the same capacity according to the value of the test capacity;
步骤S71,以所述测试块容量为填充单位分别对每个所述旧文件中的数据进行读取,直至将每个所述旧文件读取完毕;Step S71, using the test block capacity as a filling unit to read the data in each of the old files, until the reading of each of the old files is completed;
其中,通过对每个所述旧文件中的数据进行读取的设计,以计算每个所述旧文件对应的读取时间;Wherein, by reading the data in each of the old files, the reading time corresponding to each of the old files is calculated;
步骤S81,根据所述旧文件的容量大小和对应的所述读取时间以计算得到多个读取速度,并将每个所述读取速度与对应的所述旧文件的容量大小的对应关系进行存储;Step S81, calculating a plurality of reading speeds according to the capacity of the old file and the corresponding reading time, and calculating the corresponding relationship between each reading speed and the corresponding capacity of the old file to store;
其中,通过计算所述读取速度的设计,以得到所述读已存在文件的功能对应的所述测试结果,所述测试结果中包含多个不同所述测试容量与对应所述读取速度的对应关系,通过将对应关系进行存储的设计,以使可以方便用户对所述当前EMMC芯片的所述读已存在文件的功能的查看,提高了用户的体验。Wherein, by calculating the design of the reading speed, the test result corresponding to the function of reading the existing file is obtained, and the test result includes a plurality of different test capacities and corresponding to the reading speed. The corresponding relationship is designed to store the corresponding relationship, so that the user can conveniently check the function of reading the existing file of the current EMMC chip, which improves the user experience.
步骤S91,获取所述测试结果中最大值与最小值之间的波动差值,并判断所述波动差值是否在对应的预设误差范围内;Step S91, obtaining the fluctuation difference between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference is within the corresponding preset error range;
当所述步骤S91判断到所述测试程序对应的所述波动差值在所述预设误差范围内时,执行步骤S101。When it is determined in step S91 that the fluctuation difference corresponding to the test program is within the preset error range, step S101 is executed.
步骤S101,判定所述当前EMMC中所述测试程序的测试功能对象功能稳定;Step S101, determine that the test function object function of the test program described in the current EMMC is stable;
其中,即判定所述测试功能对象测试通过。Wherein, it is judged that the test of the test function object is passed.
当所述步骤S91判断到所述测试程序对应的所述波动差值不在所述预设误差范围内时,执行步骤S111。When it is determined in step S91 that the fluctuation difference corresponding to the test program is not within the preset error range, step S111 is executed.
步骤S111,判定所述当前EMMC中所述测试程序的测试功能对象功能不稳定;Step S111, determining that the test function object function of the test program in the current EMMC is unstable;
其中,即判定所述测试功能对象测试不通过。Wherein, it is determined that the test of the test function object fails.
步骤S121,获取所述测试功能对象的名称及功能判定结果,并将所述名称与对应的所述判定结果进行对应关系显示。Step S121, acquiring the name and function determination result of the test function object, and displaying the corresponding relationship between the name and the corresponding determination result.
其中,当本地存储的所述测试程序的数量为多个时,通过分别运行不同所述测试程序得到所述测试结果,并对不同所述测试结果中的所述波动差值进行判定得到所述判定结果后,将所述名称与对应的所述判定结果进行对应显示,以使方便了用户查看所述当前EMMC中各个功能是否稳定。Wherein, when there are multiple test programs stored locally, the test results are obtained by running different test programs respectively, and the fluctuation difference in the different test results is determined to obtain the After the determination result, the name and the corresponding determination result are displayed correspondingly, so that it is convenient for the user to check whether each function in the current EMMC is stable.
具体的,所述测试程序的执行功能可以为测试所述当前EMMC的向一个新文件写入的功能、向一个已存在的文件写入的功能、读取一个已存在的文件的功能、读取一个最近读过的文件的功能、读一个文件中的随机偏移量的功能、写一个文件中的随机偏移量的功能、调用函数写文件的功能、调用函数读文件的功能中的任意一种,当通过上述步骤依序进行测试后,将所有所述测试功能对象的名称与对应的所述判定结果统一进行显示,其显示方法采用表格的方式、或坐标图像的方式进行显示。Specifically, the execution function of the test program can be to test the function of writing to a new file of the current EMMC, the function of writing to an existing file, the function of reading an existing file, and reading Any of a recently read file function, a function to read a random offset in a file, a function to write a random offset in a file, a function to call a function to write a file, or a function to call a function to read a file One, after the test is performed sequentially through the above steps, the names of all the test function objects and the corresponding judgment results are uniformly displayed, and the display method is displayed in the form of a table or a coordinate image.
本实施例中通过对所述EMMC更换信号的接收设计,以使判定是否开启所述EMMC测试方法,使得所述EMMC测试方法具有自动化测试的功能,进而降低了人员成本且提高了对所述当前EMMC的测试效率,通过所述测试程序的获取设计,以使针对性的对所述测试功能对象的功能进行测试,进而提高了所述EMMC测试方法的准确性,通过所述测试结果中最大值与最小值之间的所述波动差值,以使方便了所述波动差值与所述预设误差范围的判定,且通过采用所述波动差值与所述误差范围的判断方式,以使可准确的判定所述波动差值对应的所述测试功能对象的功能是否稳定,上述EMMC测试方法当接收到所述EMMC更换信号时自动开启对所述当前EMMC功能的检测,自动化程度较高无需工作人员发出检测信号和对EMMC的检测的操作,提高了用户体验,且所述EMMC测试方法可以同时对多个所述测试功能对象的功能进行测试,并通过采用所述波动差值与对应所述预设误差范围的判断方式进行功能稳定的判断,提高了测试的准确性。In the present embodiment, by changing the receiving design of the signal to the EMMC, it is determined whether to open the EMMC test method, so that the EMMC test method has the function of automated testing, thereby reducing personnel costs and improving the understanding of the current situation. The test efficiency of EMMC, by the acquisition design of described test program, so that the function of described test function object is tested targetedly, and then the accuracy of described EMMC test method has been improved, through the maximum value in the test result The fluctuation difference between the minimum value and the minimum value facilitates the determination of the fluctuation difference and the preset error range, and by using the judgment method of the fluctuation difference and the error range, the Whether the function of the described test function object corresponding to the fluctuation difference can be accurately judged is stable, and the above-mentioned EMMC test method automatically starts the detection of the current EMMC function when receiving the EMMC replacement signal, and the degree of automation is higher without the need The staff sends detection signal and the detection operation to EMMC, has improved user experience, and described EMMC test method can test the function of a plurality of described test function objects simultaneously, and by adopting described fluctuation difference and corresponding The judgment method of the preset error range is used to judge the function stability, which improves the accuracy of the test.
请参阅图4,为本发明第三实施例提供的EMMC测试装置100的结构示意图,包括:Please refer to Fig. 4, the structural representation of the EMMC testing device 100 that the third embodiment of the present invention provides, comprises:
测试模块10,用于当接收到EMMC更换信号时,获取本地存储的测试程序,并根据所述测试程序对当前EMMC进行功能测试,以得到测试结果,其中本地存储的所述测试程序的数量至少为一个,且各个所述测试程序不相同;Test module 10, for when receiving EMMC replacement signal, obtain the test program of local storage, and carry out function test to current EMMC according to said test program, to obtain test result, wherein the quantity of said test program of local storage is at least One, and each said test procedure is different;
判断模块20,用于获取所述测试结果中最大值与最小值之间的波动差值,并判断所述波动差值是否在对应的预设误差范围内;A judging module 20, configured to obtain a fluctuation difference between the maximum value and the minimum value in the test result, and judge whether the fluctuation difference is within a corresponding preset error range;
判定模块30,用于当所述判断模块20判断到所述测试程序对应的所述波动差值在所述预设误差范围内时,判定所述当前EMMC中所述测试程序的测试功能对象功能稳定,当所述判断模块20判断到所述测试程序对应的所述波动差值不在所述预设误差范围内时,判定所述当前EMMC中所述测试程序的测试功能对象功能不稳定。A judging module 30, configured to judge the test function object function of the test program in the current EMMC when the judgment module 20 judges that the fluctuation difference corresponding to the test program is within the preset error range Stable, when the judging module 20 judges that the fluctuation difference corresponding to the test program is not within the preset error range, it is judged that the function of the test function object of the test program in the current EMMC is unstable.
显示模块40,用于获取所述判定模块30中所述测试功能对象的名称及功能判定结果,并将所述名称与对应的所述判定结果进行对应关系显示,当本地存储的所述测试程序的数量为多个时,通过分别运行不同所述测试程序得到所述测试结果,并对不同所述测试结果中的所述波动差值进行判定得到所述判定结果后,将所述名称与对应的所述判定结果进行对应显示,以使方便了用户查看所述当前EMMC中各个功能是否稳定。The display module 40 is configured to obtain the name and function judgment result of the test function object in the judgment module 30, and display the corresponding relationship between the name and the corresponding judgment result. When the locally stored test program When the number is multiple, the test results are obtained by running different test programs respectively, and the fluctuation difference in the different test results is judged to obtain the judgment result, and the name and the corresponding Corresponding display is performed on the determination result, so that it is convenient for the user to check whether each function in the current EMMC is stable.
所述测试模块10包括:Described test module 10 comprises:
第一获取模块11,用于获取本地存储的测试块容量,并按预设获取规则依序获取预设容量范围内的多个测试容量,所述预设获取规则中采用的获取公式为:The first obtaining module 11 is used to obtain the test block capacity stored locally, and sequentially obtain a plurality of test capacities within the preset capacity range according to the preset obtaining rule, and the obtaining formula adopted in the preset obtaining rule is:
W=Y×2n;W=Y×2 n ;
所述获取公式中,n的值取自然数,Y的值为本地存储的基础测试容量的大小,W的值为目标文件的容量,所述目标文件的容量用于所述测试容量的获取。In the acquisition formula, the value of n is a natural number, the value of Y is the size of the basic test capacity stored locally, and the value of W is the capacity of the target file, which is used to acquire the test capacity.
运行模块12,用于根据所述第一获取模块11的获取结果,依序对每个所述测试容量执行所述测试程序。The running module 12 is configured to sequentially execute the test program for each of the test volumes according to the result obtained by the first obtaining module 11 .
所述运行模块12包括:The operation module 12 includes:
文件创建模块121,用于所述测试程序的所述测试功能对象为向新文件写入的功能时,依序获取每个所述测试容量的值,并根据所述测试容量的值以创建对应相同容量大小的多个新文件;The file creation module 121 is used to obtain the value of each test capacity in sequence when the test function object of the test program is a function to write into a new file, and create a corresponding test capacity according to the value of the test capacity. Multiple new files of the same volume size;
数据填充模块122,用于根据所述文件创建模块121的创建结果,以所述测试块容量为填充单位分别向每个所述新文件中填充数据,直至将每个所述新文件填充满,以计算每个所述新文件对应的填充时间;The data filling module 122 is configured to, according to the creation result of the file creation module 121, fill each of the new files with data using the test block capacity as a filling unit, until each of the new files is fully filled, to calculate the fill time corresponding to each of said new files;
第一计算模块123,用于根据所述数据填充模块122的填充结果,计算每个所述新文件的容量大小和对应的所述填充时间之间的速度,以得到多个填充速度,并将每个所述填充速度与对应的所述新文件的容量大小的对应关系进行存储,以得到所述向新文件写入的功能对应的所述测试结果。The first calculation module 123 is configured to calculate the speed between the capacity of each of the new files and the corresponding filling time according to the filling result of the data filling module 122, so as to obtain multiple filling speeds, and The corresponding relationship between each filling speed and the corresponding capacity of the new file is stored, so as to obtain the test result corresponding to the function of writing to the new file.
所述第一获取模块11包括:The first acquisition module 11 includes:
第一子获取模块111,用于获取本地存储的所述基础测试容量的大小,并获取所述预设容量范围内的最大值阈值。The first sub-acquisition module 111 is configured to acquire the size of the basic test capacity stored locally, and acquire the maximum threshold within the preset capacity range.
第二计算模块112,用于根据所述第一子获取模块111的获取结果,并根据所述获取公式将W设置为所述最大值阈值以计算n阈值。The second calculation module 112 is configured to calculate the n threshold according to the acquisition result of the first sub-acquisition module 111 and set W as the maximum value threshold according to the acquisition formula.
第三计算模块113,用于根据所述第二计算模块112的计算结果,获取0至所述n阈值之间的所有自然数,并分别将所述所有自然数代入至所述获取公式,以计算得到多个所述目标文件的容量。The third calculation module 113 is configured to obtain all natural numbers between 0 and the n threshold according to the calculation results of the second calculation module 112, and respectively substitute all the natural numbers into the acquisition formula to calculate The capacity of multiple target files.
第二子获取模块114,用于根据所述第三计算模块113的计算结果,依序在所述预设容量范围内获取相同大小的容量,以得到多个所述测试容量。The second sub-acquisition module 114 is configured to sequentially acquire capacities of the same size within the preset capacity range according to the calculation result of the third calculation module 113, so as to obtain a plurality of the test capacities.
上述EMMC测试装置100,通过所述测试模块10对所述EMMC更换信号的接收设计,以使判定是否开启所述EMMC测试方法,使得所述EMMC测试方法具有自动化测试的功能,进而降低了人员成本且提高了对所述当前EMMC的测试效率,通过所述测试程序的获取设计,以使针对性的对所述测试功能对象的功能进行测试,进而提高了所述EMMC测试方法的准确性,通过所述判断模块20计算所述测试结果中最大值与最小值之间的所述波动差值,以使方便了所述波动差值与所述预设误差范围的判定,且通过所述判定模块30采用所述波动差值与所述误差范围的判断方式,以使可准确的判定所述波动差值对应的所述测试功能对象的功能是否稳定,上述EMMC测试装置100当接收到所述EMMC更换信号时自动开启对所述当前EMMC功能的检测,自动化程度较高无需工作人员发出检测信号,提高了用户体验,且所述EMMC测试装置100可以同时对多个所述测试功能对象的功能进行测试,并通过采用所述波动差值与对应所述预设误差范围的判断方式进行功能稳定的判断,提高了测试的准确性。Above-mentioned EMMC testing device 100, by the receiving design of described EMMC replacement signal by described testing module 10, so that judge whether to open described EMMC testing method, make described EMMC testing method have the function of automated testing, and then reduce personnel cost And improved the test efficiency to described current EMMC, by the acquisition design of described test program, so that the function of described test function object is tested specifically, and then improved the accuracy of described EMMC test method, by The judgment module 20 calculates the fluctuation difference between the maximum value and the minimum value in the test result, so as to facilitate the judgment of the fluctuation difference and the preset error range, and through the judgment module 30 adopt the judging mode of described fluctuation difference value and described error range, so that can accurately determine whether the function of the described test function object corresponding to described fluctuation difference value is stable, above-mentioned EMMC testing device 100 receives described EMMC Automatically open the detection of the current EMMC function when changing the signal, the higher degree of automation does not need the staff to send the detection signal, which improves the user experience, and the EMMC testing device 100 can simultaneously perform the function of a plurality of described test function objects test, and by using the fluctuation difference and the judgment method corresponding to the preset error range to judge the function stability, the accuracy of the test is improved.
请参阅图5,为本发明第四实施例提供的EMMC测试装置100的结构示意图,该第四实施例与第三实施例的结构大抵相同,其区别在于,本实施例中所述运行模块12还包括:Please refer to Fig. 5, it is the structural representation of the EMMC testing device 100 that the fourth embodiment of the present invention provides, and the structure of this fourth embodiment is roughly the same as that of the third embodiment, and its difference is, operating module 12 described in the present embodiment Also includes:
第二获取模块124,用于当所述测试程序的所述测试功能对象为读已存在文件的功能时,依序获取每个所述测试容量的值,并根据所述测试容量的值以获取对应相同容量大小的多个旧文件。The second obtaining module 124 is used to obtain the value of each test capacity in sequence when the test function object of the test program is the function of reading an existing file, and obtain the value according to the value of the test capacity Corresponds to multiple old files of the same capacity size.
数据读取模块125,用于根据所述第二获取模块124的获取结果,以所述测试块容量为填充单位分别对每个所述旧文件中的数据进行读取,直至将每个所述旧文件读取完毕,以计算每个所述旧文件对应的读取时间。The data reading module 125 is used to read the data in each of the old files with the test block capacity as the filling unit according to the acquisition result of the second acquisition module 124, until each of the After the old files are read, the reading time corresponding to each old file is calculated.
第四计算模块126,用于根据所述数据读取模块125的读取结果,计算所述旧文件的容量大小和对应的所述读取时间之间的速度,以得到多个读取速度,并将每个所述读取速度与对应的所述旧文件的容量大小的对应关系进行存储,以得到所述读已存在文件的功能对应的所述测试结果。The fourth calculation module 126 is used to calculate the speed between the capacity of the old file and the corresponding reading time according to the reading result of the data reading module 125, so as to obtain multiple reading speeds, And storing the corresponding relationship between each reading speed and the corresponding capacity of the old file, so as to obtain the test result corresponding to the function of reading the existing file.
本实施例通过计算所述读取速度的设计,以得到所述读已存在文件的功能对应的所述测试结果,所述测试结果中包含多个不同所述测试容量与对应所述读取速度的对应关系,通过将对应关系进行存储的设计,以使可以方便用户对所述当前EMMC芯片的所述读已存在文件的功能的查看,提高了用户的体验。In this embodiment, by calculating the design of the reading speed, the test result corresponding to the function of reading the existing file is obtained, and the test result includes a plurality of different test capacities and the corresponding reading speed Correspondence, by storing the design of the correspondence, it is convenient for the user to check the function of reading the existing file of the current EMMC chip, which improves the experience of the user.
本实施例还提供了一种移动终端,包括存储器以及处理器,所述存储器用于存储计算机程序,所述处理器运行所述计算机程序以使所述移动终端执行上述的EMMC测试方法。This embodiment also provides a mobile terminal, including a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the mobile terminal to execute the above-mentioned EMMC testing method.
本实施例还提供了一种存储介质,其上存储有上述移动终端中所使用的计算机程序,该程序在执行时,包括如下步骤:This embodiment also provides a storage medium, on which is stored the computer program used in the above-mentioned mobile terminal, when the program is executed, it includes the following steps:
当接收到EMMC更换信号时,获取本地存储测试程序,并根据所述测试程序对当前EMMC进行功能测试,以得到测试结果;When receiving the EMMC replacement signal, obtain the local storage test program, and carry out the functional test to the current EMMC according to the test program, to obtain the test result;
获取所述测试结果中最大值与最小值之间的波动差值,并判断所述波动差值是否在对应的预设误差范围内;Obtaining the fluctuation difference between the maximum value and the minimum value in the test result, and judging whether the fluctuation difference is within a corresponding preset error range;
若是,则判定测试通过;If so, it is judged that the test is passed;
若否,则判定测试不通过。所述的存储介质,如:ROM/RAM、磁碟、光盘等。If not, it is determined that the test fails. The storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
上述实施例描述了本发明的技术原理,这些描述只是为了解释本发明的原理,而不能以任何方式解释为本发明保护范围的限制。基于此处的解释,本领域的技术人员不需要付出创造性的劳动即可联想到本发明的其他具体实施方式,这些方式都将落入本发明的保护范围内。The above-mentioned embodiments describe the technical principle of the present invention, and these descriptions are only for explaining the principle of the present invention, and cannot be construed as limiting the protection scope of the present invention in any way. Based on the explanations herein, those skilled in the art can think of other specific implementation modes of the present invention without creative efforts, and these modes will all fall within the protection scope of the present invention.
Claims (10)
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 true CN108564985A (en) | 2018-09-21 |
| CN108564985B 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) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111294255A (en) * | 2020-01-22 | 2020-06-16 | 上海极熵数据科技有限公司 | Gateway testing method and storage medium |
| CN119669012A (en) * | 2024-11-25 | 2025-03-21 | 重庆朗奕迪实业有限公司 | Hard disk test data processing method and system |
Citations (10)
| 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 |
| US20130103992A1 (en) * | 2011-10-25 | 2013-04-25 | 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 |
| CN103120028A (en) * | 2010-09-28 | 2013-05-22 | 皇家飞利浦电子股份有限公司 | Apparatus and method for automatically detecting installed lamp type |
| CN103324560A (en) * | 2013-06-28 | 2013-09-25 | 深圳市江波龙电子有限公司 | Testing method and device of flash memory |
| CN105487977A (en) * | 2015-11-30 | 2016-04-13 | 北京锐安科技有限公司 | Agility-oriented automatic test management system and method |
| CN106683709A (en) * | 2016-12-28 | 2017-05-17 | 西北工业大学 | Method for evaluating NOR and NAND flash memory performance |
| CN106782668A (en) * | 2016-11-16 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of test memory reads and writes the method and device of limit velocity |
| CN106814302A (en) * | 2015-12-02 | 2017-06-09 | 北京京存技术有限公司 | A kind of eMMC test circuits |
| CN107632914A (en) * | 2017-09-22 | 2018-01-26 | 北京润科通用技术有限公司 | A kind of Fault Locating Method and system of EMMC arrays |
| CN107632778A (en) * | 2017-08-07 | 2018-01-26 | 深圳芯邦科技股份有限公司 | A kind of Nand Flash scanning detection methods and system |
-
2018
- 2018-03-16 CN CN201810220433.6A patent/CN108564985B/en active Active
Patent Citations (10)
| 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 |
| CN103120028A (en) * | 2010-09-28 | 2013-05-22 | 皇家飞利浦电子股份有限公司 | Apparatus and method for automatically detecting installed lamp type |
| US20130103992A1 (en) * | 2011-10-25 | 2013-04-25 | 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 |
| CN103324560A (en) * | 2013-06-28 | 2013-09-25 | 深圳市江波龙电子有限公司 | Testing method and device of flash memory |
| 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 |
| CN106782668A (en) * | 2016-11-16 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of test memory reads and writes the method and device of limit velocity |
| CN106683709A (en) * | 2016-12-28 | 2017-05-17 | 西北工业大学 | Method for evaluating NOR and NAND flash memory performance |
| CN107632778A (en) * | 2017-08-07 | 2018-01-26 | 深圳芯邦科技股份有限公司 | A kind of Nand Flash scanning detection methods and system |
| CN107632914A (en) * | 2017-09-22 | 2018-01-26 | 北京润科通用技术有限公司 | A kind of Fault Locating Method and system of EMMC arrays |
Non-Patent Citations (1)
| Title |
|---|
| 刘宝文: "基于eMMC的高速大容量存储卡研制", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111294255A (en) * | 2020-01-22 | 2020-06-16 | 上海极熵数据科技有限公司 | Gateway testing method and storage medium |
| 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 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108564985B (en) | 2021-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109189682A (en) | A kind of script method for recording and device | |
| US11231947B2 (en) | Method and apparatus for determining the capacity of an application cluster | |
| CN108269606B (en) | Method and system for testing storage parameters of eMMC chip | |
| KR101547317B1 (en) | System for detecting fail block using logic block address and data buffer address in storage test device | |
| US10643736B2 (en) | Method, apparatus and electronic device for read/write speed testing | |
| CN104461846A (en) | Method and device for detecting power consumption of application program | |
| CN102486938B (en) | Method for rapid detection of memory and device | |
| CN108564985A (en) | EMMC (embedded multi-media card) testing method and device, mobile terminal and storage medium | |
| CN111540400A (en) | Write amplification factor testing method and device, electronic equipment and storage medium | |
| CN119512846A (en) | Wear leveling function testing method, device, readable storage medium and electronic device | |
| CN103777907A (en) | Method for automatically obtaining EEPROM (Electrically Erasable Programmable Read-Only Memory) storage capacity | |
| CN108733478A (en) | Three dimensional image processing method and device | |
| CN105302679A (en) | Detection method and system for intelligent terminal storage stability | |
| CN114400037A (en) | NAND erasing method, device and readable storage medium | |
| CN117012267B (en) | Verification method, controller and medium for UFS written data | |
| CN103294606A (en) | Methods and devices for allocating memories and detecting overflow thereof | |
| CN109582527A (en) | Storage server and solid state disk service life monitoring method thereof | |
| CN115798530B (en) | Method and device for measuring capacitance required by power-down protection | |
| CN113892822B (en) | Ultrasonic water dispenser and its control method, processor, device and storage medium | |
| CN115713962A (en) | Memory test method, system and computer readable storage medium | |
| CN105204967A (en) | Method and device for detecting hard disc | |
| CN118708113B (en) | Memory card memory configuration method and device, computer equipment and storage medium | |
| CN118969056A (en) | Long-term performance testing method, device, readable storage medium and electronic device | |
| CN111694700A (en) | Method, device, terminal and storage medium for monitoring DCPMM memory performance | |
| CN105893394B (en) | Large file simulation method and device |
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 |