Embodiment
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The functional test of equipment under test is one important quality inspection link in the electronic product machining process, and it can help producer to check most device deficient purchase and assembling to process bad.Functional test is different with the research and development test, and it is based on producing, and take check products-hardware fault as main purpose, attaches simultaneously the functions such as configuring product manufacturing information.
Embodiment one
Fig. 1 is that the embodiment of the invention has the terminal equipment schematic diagram one based on the device for testing functions of memory device.The described terminal equipment 100 that has based on the device for testing functions of memory device comprises test recognition unit 101 and test cell 102, test recognition unit 101 will be tested identifying information for equipment under test according to the Testability Design that sets in advance and send to memory device, identify the detecting information that whether has agreement in the described memory device; If there is the detecting information of agreement in the described memory device, test cell 102 is used for according to the detecting information of described agreement equipment under test being carried out functional test and generating test result data.
In a preferred embodiment, the terminal equipment that has based on the device for testing functions of memory device also comprises the test result data transmitting element, and the test result data transmitting element is used for that described test result data is sent to described memory device and preserves.
In another preferred embodiment, as shown in Figure 2, described test recognition unit 101 comprises: test processes module 201, be used for carrying out the Testability Design support, and generate the test identifying information; Test identifying information sending module 202 is used for described test identifying information is sent to memory device; Test identification module 203 is used for identifying the detecting information whether described memory device exists agreement.201 described test identification modules, concrete being used for identified the test file whether described memory device exists agreement, identifies the detecting information that whether exists in the described test file with described memory device agreement.
The equipment under test that carries out functional test can be the electronic products such as DPF, palmtop PC or mobile phone.In the assembling process of mobile phone, the idea reason of colliding owing to device may cause dysfunction, and such as certain chips operation irregularity, the connection of part connecting line is unusual etc.; In addition, the configuration information that the mobile phone needs yet may occur does not write, and product version information loading error etc. are complete or can't read etc. such as picture disply.For the problems referred to above, we can carry out functional test to mobile phone by memory devices such as USB flash disks.
The below illustrates embodiments of the invention as an example of mobile phone example.Fig. 4 is that embodiment of the invention equipment under test is the communication connection schematic diagram of mobile phone.Mobile phone does not have the test ports such as network interface, serial ports mostly, and the part mobile phone has USB interface.As shown in Figure 4, memory device is USB flash disk 401, and mobile phone 403 is with the memory device host interface, and mobile phone 403 communicates passage with USB flash disk 401 and is connected, and can directly insert mobile phone or by 402 connections of USB line, so just realize the communication connection between the principal and subordinate interface.
Realize after the communication connection between the principal and subordinate interface, USB flash disk 401 will communicate with mobile phone 403: because mobile phone 403 is main interface, therefore communication request must be initiated by mobile phone 403, therefore need the software of mobile phone 403 to do Testability Design (Design for Testability DFT) support, test processes module 201, the software of initiating test request is write in the tested equipment, and generate the test identifying information, send TRM according to the Testability Design that sets in advance to memory device.But software does not know when initiate test request yet, therefore needs to do special processing in USB flash disk 401 the insides yet.
Mobile phone 403 will be tested identifying information by the test identifying information sending module 202 of test recognition unit 101 and send to USB flash disk 401 and identify.The test identification module 203 of described test recognition unit 101 is used for identification and whether has the test file of arranging with USB flash disk 401, identifies the detecting information that whether exists mobile phone 403 and USB flash disk 401 to arrange in the described test file.If there is the test file of agreement, then identify the detecting information that whether exists mobile phone 403 and USB flash disk 401 to arrange in the described test file.Mobile phone 403 obtains recognition result information by recognition result information acquisition unit 102 from USB flash disk 401, and utilize test judging unit 103 to judge whether to test according to described recognition result information, judge the detecting information that whether exists mobile phone 403 and USB flash disk 401 to arrange in the described recognition result information; If the detecting information that exists mobile phone 403 and USB flash disk 401 to arrange in the described recognition result information then utilizes test cell 104 to test and generate test result data according to the detecting information of described agreement.Described terminal equipment also comprises the test result data transmitting element, is used for when being completed described test result data being sent to USB flash disk 401 and preserves.
Testing successful the time can the modes such as power supply to External memory equipment, automatic shutdown reminds operating personnel to test to finish and test result is OK by closing.If test crash can be told operating personnel test crash by modes such as point failure indicator lights.Operating personnel understand detailed information by the test result data that reads the memory device the inside.
The present invention utilizes the memory device host interface equipment under test to be carried out the automated function test of product, the advantage such as have that functional coverage is comprehensive, quality assurance good, testing efficiency is high, cost is low and test operation is convenient.
Embodiment two
Fig. 3 is that the embodiment of the invention is based on the function test method schematic diagram of memory device.Described method comprises:
Step S301: will test identifying information according to the Testability Design that sets in advance and send to memory device, and identify the detecting information that whether has agreement in the described memory device; The detecting information of agreement comprises: identify described memory device and whether have the test file of agreement and identify the detecting information that whether exists in the described test file with described memory device agreement;
Step S302: if there is the detecting information of agreement in the described memory device, carries out functional test and generate test result data according to the detecting information of described agreement, then described recognition result data are sent to described memory device and preserve.
To test identifying information according to the Testability Design that sets in advance sends to memory device and comprises: carry out the Testability Design support, generate the test identifying information; Described test identifying information is sent to memory device.
The equipment under test that carries out functional test can be the electronic products such as DPF, palmtop PC or mobile phone.In the assembling process of DPF, the idea reason of colliding owing to device may cause dysfunction, and such as certain chips operation irregularity, the connection of part connecting line is unusual etc.; In addition, the configuration information that the DPF needs yet may occur does not write, and product version information loading error etc. are complete or can't read etc. such as picture disply.For the problems referred to above, we can carry out functional test by memory device logarithmic code photo frames such as USB flash disks.
The below illustrates embodiments of the invention as an example of DPF example.Fig. 5 is that embodiment of the invention equipment under test is digital communication connection schematic diagram.
DPF does not have the test ports such as network interface, serial ports mostly, and the part DPF has USB interface.As shown in Figure 5, memory device is USB flash disk 401, and DPF 503 is with the memory device host interface, and DPF 503 communicates passage with USB flash disk 401 and is connected, can directly insert DPF or by 402 connections of USB line, so just realize the communication connection between the principal and subordinate interface.
Realize after the communication connection between the principal and subordinate interface, USB flash disk 401 will communicate with DPF 503: because DPF 503 is main interface, therefore communication request must be initiated by DPF 503, therefore need the software of DPF 503 to do the Testability Design support, the software of initiating test request is write in the tested equipment, and generate the test identifying information, send TRM according to the Testability Design that sets in advance to memory device.But software does not know when initiate test request yet, therefore needs to do special processing in USB flash disk 401 the insides yet.
DPF 403 will be tested identifying information and send to USB flash disk 401 and identify.The test file whether identification exists DPF 403 and USB flash disk 401 to arrange, and identify the detecting information that whether exists DPF 503 and USB flash disk 401 to arrange in the described test file.If there is the test file of agreement, then identify the detecting information that whether exists DPF 503 and USB flash disk 401 to arrange in the described test file.DPF 503 is by obtaining recognition result information and judge whether to test according to described recognition result information, judge the detecting information that whether exists DPF 503 and USB flash disk 401 to arrange in the described recognition result information from USB flash disk 401; If test result data is tested and generated to the detecting information that exists DPF 503 and USB flash disk 401 to arrange in the described recognition result information then according to the detecting information of described agreement.After being completed, DPF 503 will be tested the test result data that generates and send to USB flash disk 401 and preserve.
Fig. 6 is the functional test flow chart of the embodiment of the invention two.Because equipment under test is main interface, communication request must be initiated by equipment under test.Equipment under test will be tested identifying information according to the Testability Design that sets in advance and send to memory device, obtain recognition result information from memory device, comprise in the described recognition result information: whether exist with the test file of described memory device agreement and described test file in whether have detecting information with described memory device agreement.Equipment under test is tested according to described detecting information after judging the detecting information of existence and described memory device agreement according to the file identification object information, generates test result data.By side apparatus the test result data that generates being sent to described memory device preserves.
Testing successful the time can the modes such as power supply to External memory equipment, automatic shutdown reminds operating personnel to test to finish and test result is OK by closing.If test crash can be told operating personnel test crash by modes such as point failure indicator lights.Operating personnel understand detailed information by the test result data that reads the memory device the inside.
The present invention utilizes the memory device host interface equipment under test to be carried out the automated function test of product, the advantage such as have that functional coverage is comprehensive, quality assurance good, testing efficiency is high, cost is low and test operation is convenient.
Embodiment three
Fig. 7 is that the embodiment of the invention is based on the function test system schematic diagram one of memory device.Described system 700 comprises memory device 701 and equipment under test 702, and wherein, described memory device 701 is used for the test file that storage is tested described equipment under test; Described equipment under test 702, to test identifying information according to the Testability Design that sets in advance and send to memory device, identify the detecting information that whether has agreement in the described memory device, if there is the detecting information of agreement in the described memory device, detecting information according to described agreement carries out functional test and generates test result data, and equipment under test sends to described memory device with described recognition result data and preserves.
In a preferred embodiment, transfer the survey terminal based on the function test system of memory device, be used for inquiring about described memory device and whether described equipment under test establishes a communications link, send detecting information to described memory device, obtain the described recognition result data that are saved in described memory device, realize the real time communication with described equipment under test.
For the situation that includes only memory device and equipment under test in the system, concrete test process and embodiment two are similar, do not repeat them here.
In the present embodiment, as shown in Figure 8, described system also comprises accent survey terminal 801, be used for inquiring about described memory device and whether described equipment under test establishes a communications link, when inquiring described memory device and described equipment under test connects, send detecting information to described memory device, obtain the described recognition result data that are saved in described memory device, realize the real time communication with described equipment under test.
The below illustrates embodiments of the invention as an example of palmtop PC example.
Fig. 9 is that embodiment of the invention equipment under test is the communication connection schematic diagram of palmtop PC.As shown in Figure 9, memory device is tool palette 902, and tool palette 902 also has netting twine or Serial Port Line with USB interface, is used for link and lineup terminal and equipment under test, transfers the survey terminal for example can be computer 901, and equipment under test is palmtop PC 904.Computer 901 is connected with tool palette 903 by netting twine or Serial Port Line 902, and palmtop PC 904 is connected with tool palette 903 by USB line 402.
Figure 10 is the functional test flow chart of the embodiment of the invention three.Be elaborated below in conjunction with Fig. 9 and Figure 10.
Computer 901 directly sends to tool palette 903 circulations and connects Query Information, and whether inquiry palmtop PC 904 establishes a communications link with tool palette 903.Palmtop PC 904 sends the test file identifying information according to the Testability Design that sets in advance to tool palette 903, and obtains test file recognition result information from tool palette 903.This computer-chronograph 901 will get access to communication connection information from tool palette 903, inquire tool palette 903 and connect with palmtop PC 904, send the detecting information of tool palette 903 and palmtop PC 904 in the described test file of tool palette 903.
Palmtop PC 904 sends agreement test identifying information to tool palette 903, and from tool palette 903 acquisition detecting information recognition result information, according to described detecting information recognition result information judge described detecting information be tool palette 903 with the detecting information of palmtop PC 904 agreements after, detecting information according to described agreement carries out functional test to palmtop PC 904, and generates test result data information.Preserve in the tool palette 903 that the described test result data information that palmtop PC 904 will generate sends.Computer 901 Real-time Obtaining palmtop PCs 904 send to the test result data information of tool palette 903, realize the real time communication of 901 pairs of palmtop PCs 904 of computer.
Testing successful the time can the modes such as power supply to tool palette 903, automatic shutdown reminds operating personnel to test to finish and test result is OK by closing.If test crash can be told operating personnel test crash by modes such as point failure indicator lights.Operating personnel understand detailed information by the destination file that reads the memory device the inside.
The technique effect of the embodiment of the invention: the present invention utilizes the memory device host interface equipment under test to be carried out the automated function test of product, transfer the survey terminal to send detecting information to memory device in real time, realize to transfer survey the real time communication of terminal and equipment under test, the advantage such as have that functional coverage is comprehensive, quality assurance good, testing efficiency is high, cost is low and test operation is convenient.