Embodiment
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The functional test of equipment under test is one important quality inspection link in the electronic product course of processing, 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 is main purpose with check products-hardware fault, attaches functions such as configuring product manufacturing information simultaneously.
Embodiment one
Fig. 1 has terminal equipment schematic diagram one based on the device for testing functions of memory device for the embodiment of the invention.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 is used for equipment under test will be tested identifying information according to the Testability Design that sets in advance and send to memory device, discern 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 to carry 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 discerning the detecting information whether described memory device exists agreement.201 described test identification modules specifically are used to discern the test file whether described memory device exists agreement, discern 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 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, product version information loading error etc., and for example picture shows complete or can't read etc.At the problems referred to above, we can carry out functional test to mobile phone by memory devices such as USB flash disks.
Be example explanation embodiments of the invention below with the mobile phone.Fig. 4 is the schematic diagram that communicates to connect of mobile phone for embodiment of the invention equipment under test.Mobile phone does not have 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 a USB flash disk 401, and mobile phone 403 has 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 communicating to connect between the principal and subordinate interface.
Realize after the communicating to connect 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 discern.The test identification module 203 of described test recognition unit 101 is used to discern the test file that whether exists with USB flash disk 401 agreements, discerns 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 discern 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 test and when finishing described test result data is sent to USB flash disk 401 and preserve.
Test successful the time can by close power supply to External memory equipment, mode such as shutdown reminds operating personnel to test to finish and test result is OK automatically.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 that equipment under test is carried out the automation function test of product, advantage such as have that function covers comprehensively, quality assurance is good, testing efficiency is high, cost is low and test operation is convenient.
Embodiment two
Fig. 3 is the function test method schematic diagram of the embodiment of the invention based on 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 discern the detecting information that whether has agreement in the described memory device; The detecting information of agreement comprises: discern described memory device and whether have the test file of agreement and discern 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, then described recognition result data are sent to described memory device and preserve according to the detecting information of described agreement.
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 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, product version information loading error etc., and for example picture shows complete or can't read etc.At the problems referred to above, we can carry out functional test by memory device logarithmic code photo frames such as USB flash disks.
Be example explanation embodiments of the invention below with the DPF.Fig. 5 is the digital schematic diagram that communicates to connect for embodiment of the invention equipment under test.
DPF does not have test ports such as network interface, serial ports mostly, and the part DPF has USB interface.As shown in Figure 5, memory device is a USB flash disk 401, and DPF 503 has the memory device host interface, and DPF 503 communicates passage with USB flash disk 401 and is connected, can directly insert DPF or, so just realize communicating to connect between the principal and subordinate interface by 402 connections of USB line.
Realize after the communicating to connect 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 discern.The test file whether identification exists DPF 403 and USB flash disk 401 to arrange, and discern 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 discern 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 test finished, the test result data that DPF 503 will test generation sent to USB flash disk 401 and preserves.
Fig. 6 is the functional test flow chart of the embodiment of the invention two.Because equipment under test is a 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.
Test successful the time can by close power supply to External memory equipment, mode such as shutdown reminds operating personnel to test to finish and test result is OK automatically.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 that equipment under test is carried out the automation function test of product, advantage such as have that function covers comprehensively, quality assurance is good, testing efficiency is high, cost is low and test operation is convenient.
Embodiment three
Fig. 7 is the function test system schematic diagram one of the embodiment of the invention based on memory device.Described system 700 comprises memory device 701 and equipment under test 702, and wherein, described memory device 701 is used to store the test file that described equipment under test is tested; Described equipment under test 702, to test identifying information according to the Testability Design that sets in advance and send to memory device, discern 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 to inquire 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 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 to inquire 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 real time communication with described equipment under test.
Be example explanation embodiments of the invention below with the palmtop PC.
Fig. 9 is the schematic diagram that communicates to connect of palmtop PC for embodiment of the invention equipment under test.As shown in Figure 9, memory device is a tool palette 902, and tool palette 902 has USB interface, also has netting twine or Serial Port Line, 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 a 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 the information of communicating to connect 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 obtains the test result data information that palmtop PC 904 sends to tool palette 903 in real time, realizes the real time communication of 901 pairs of palmtop PCs 904 of computer.
Test successful the time can by close power supply to tool palette 903, mode such as shutdown reminds operating personnel to test to finish and test result is OK automatically.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 automation 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, advantage such as have that function covers comprehensively, quality assurance is good, testing efficiency is high, cost is low and test operation is convenient.