CN1156757C - Autoamtic test method of memory card and international association card in PC - Google Patents

Autoamtic test method of memory card and international association card in PC Download PDF

Info

Publication number
CN1156757C
CN1156757C CNB001089390A CN00108939A CN1156757C CN 1156757 C CN1156757 C CN 1156757C CN B001089390 A CNB001089390 A CN B001089390A CN 00108939 A CN00108939 A CN 00108939A CN 1156757 C CN1156757 C CN 1156757C
Authority
CN
China
Prior art keywords
pcmcia
module
pcmcia card
card
mentioned
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.)
Expired - Fee Related
Application number
CNB001089390A
Other languages
Chinese (zh)
Other versions
CN1325067A (en
Inventor
鹏 李
李鹏
范刚
陈玄同
林光信
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CNB001089390A priority Critical patent/CN1156757C/en
Publication of CN1325067A publication Critical patent/CN1325067A/en
Application granted granted Critical
Publication of CN1156757C publication Critical patent/CN1156757C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The present invention relates to a method for automatically testing a PCMCIA card, which comprises the following procedures: firstly, a control console primary program library is loaded, and a PCMCIA module is queried and displayed through an application interface of the control console primary program library; a dynamic link program library (DLL) is loaded by utilizing a hook link function (SetwindowsHook), a function address of TextOut is queried in a PCMCIA Module List, and data is intercepted and stored. Description values of a peripheral device are stored in a list; the peripheral device description values stored in the list are compared with the data intercepted and stored in the Module List to complete a correct or a wrong test report.

Description

Automatically test the method for PCMCIA (personal computer memory card international association) card
Technical field
The present invention relates to a kind of method of testing pcmcia card, particularly a kind of method of automatic test pcmcia card.
Background technology
PCMCIA (Personal Computer Memory Card International Association, PCMCIA (personal computer memory card international association)) is responsible for the connection standard of the periphery outfit of formulating portable computer specially.Pcmcia card is a kind of memory card standards by the common formulation of the U.S. and Japan institute.PCMCIA also has the design that is converted to other interface, as PCMCIA to SCSI (PCMCIA is to SCSI), PCMCIA toIDE (PCMCIA is to IDE) etc., all can make portable computer be used the multiple interfaces device of PC.Had at present three kinds of different interfaces of PCMCIA I, PCMCIA II and PCMCIA III to occur in portable computer, and the thickness of PCMCIA III card is the twice of PCMCIA II, PCMCIAI then is the thinnest a kind of.The function of PCMCLA card mainly is the ability that is used for expanding portable computer, makes it can connect extended storage, network interface card, modulator-demodular unit, scsi device (as high capacity hard disk, scanner).General PCMCIA can reach the capacity of 64MB, and it is big that its size is about general credit card, has slot and 68 pins of 16, but thickness is then different according to the computer that uses.In the middle of most of portable computer, all support the ability of Plug and Play (plug and play), even support Hot Plug (hot plug: needn't start shooting again and just can directly use).
But the card insert type interface card Standard PC CardStandard of research and development a new generation of portable computer manufacturer is also arranged recently, utilize a kind of 32 bus CardBus, add the clock of 20/33MHz, the transfer rate of 132MBps is provided.Basically it is to use the technology of pci bus, and the interface of pcmcia cards on the notebook computer is provided, and uses the interface of 68 pins equally.
The periphery that PCMCIA formulated is equipped with in the connection standard three layers communication.Comprise driver layer, interface card service layer, reach deck service (socket service) layer.All program designs of supporting the PCMCIA specification must define and call the function of each layer according to this standard.The routine call mode of known PCMCIA is vertical, must be by user's application program elder generation call driver layer.Driver layer is calling interface card service layer and deck service layer in regular turn again, so that (Personal Computer Interface Control, hardware layer PCIC) is linked up with being inserted with the PC interface controller.What driver layer was served is the driver of various peripherals, as modulator-demodular unit, network interface card, CD drive etc.Deck service layer is just as the BIOS in the PC, be responsible for linking up with rudimentary equipment, as setting of I/O port, IRQ etc., institute of interface card service layer role is then just as the operating system of PC, be responsible for service with hardware independent, and call deck service layer, but direct and hardware interface communication.
In the calling of each layer, interface card service layer and deck service layer can be developed voluntarily or bought ready-made software by the programmer, but driver layer then must be write the power function that calls according to the specification of interface card service layer and deck service layer.This is very big puzzlement for developing and do not support the driver of pcmcia card.Because if its driver will be rewritten as the driver that can support pcmcia card, the programmer must learn the standard of PCMCIA, and the familiar power function that how to use PCMCIA to call, this will increase extra manpower and time.
Therefore, the specification of pcmcia card, kind, with the peripheral unit of collocation, for the user, complete standardized test report is very important, so the process of standard one cover test pcmcia card, and it is also important relatively to produce standardized test report.
But with regard to the mode of test pcmcia card, classic method is tested with manual type, not only loses time and manpower, and does not have the normative testing method, so that can't raise the efficiency and test accuracy, more can't require to produce corresponding test report according to the user.
Goal of the invention
The objective of the invention is to propose a kind of method of automatic test pcmcia card, not only can solve classic method and test the problem of losing time of being caused and manpower with manual type, and can standard go out a cover method of testing, raising the efficiency and test accuracy, and produce corresponding test report according to user's requirement.
In order to realize above-mentioned purpose of the present invention, a kind of method of automatic test pcmcia card is provided, this method comprises the following step at least: a control desk routine library module is provided, and by the application interface of this control desk routine library, inquiry also shows the PCMCIA module; Provide a video data interception module, in order to the literal output in intercepting and the storage PCMCIA module list; Provide a registry data read module, in order to peripheral unit description value is stored in the tabulation; One comparison module is provided,, does one relatively with this literal output that from this PCMCIA module list, intercepts and store according to this peripheral unit description value of being stored in this tabulation; And produce a reporting modules, in order to show the test report of this correct or wrong pcmcia card.
The present invention also provides a kind of method of automatic test pcmcia card, the method comprising the steps of: by a control desk routine library module, inquiry also shows the PCMCIA module, again by a video data interception module, intercept and store the data in this PCMCIA module list, the data of these data and a registry data read module are compared, to produce a reporting modules.
Description of drawings
Relevant detailed content of the present invention and technology are as follows with regard to description of drawings now:
Fig. 1 is according to high-level schematic functional block diagram of the present invention;
Fig. 2 is according to control desk routine library of the present invention (Control Panel Library, CPL) module process flow diagram;
Fig. 3 is according to video data interception module process flow diagram of the present invention;
Fig. 4 is according to registry data read module process flow diagram of the present invention; And
Fig. 5 is according to comparison module process flow diagram of the present invention.
Embodiment
The present invention proposes a kind of process of automatic test pcmcia card, main operating process is as shown in Figure 1: wherein comprise control desk routine library (Control Panel Library, CPL) module 10, video data interception module 20, registry data read module 30, comparison module 40 and reporting modules 50.Below be respectively described below with regard to each module:
Fig. 2 is that (Control Panel Library CPL) is carried additionally the module process flow diagram according to control desk routine library of the present invention.At first start pcmcia card, then inquire about control desk primary library (step 60),, and judge whether to be written into (step 80),, then withdraw from test (step 90) if be not written into loader storehouse (step 70); If loaded routine library, then by control desk routine library application interface (step 100), inquiry PCMCIA module (step 110), and judge whether to find PCMCIA module (step 120), if do not find, then exempt routine library (step 130), and withdraw from test (step 90); If find, then show this PCMCIA module (step 140), carry additionally the flow process of module to finish control desk routine library (CPL), at this moment, control desk routine library (CPL) is carried additionally the interface data that module can show a pcmcia card.
Then intercept the interface data of above-mentioned shown pcmcia card, and Fig. 3 is according to video data interception module process flow diagram of the present invention.Utilize clasp joint function (SetwindowsHook) to be written into dynamic link routine library (Dynamic Link Library, DLL) (step 150), and judge whether to be written into success (step 160).If be not written into, then withdraw from test (step 90); If it is loaded, then at PCMCIA module list ModuleList) in the function address (step 170) of inquiry literal output (TextOut), then judge whether to find the function address (step 180) of literal output (TextOut),, then withdraw from test (step 90) if do not find; If find, then replace the literal output (TextOut) (step 190) of standard with self-defining literal output (TextOut), then force form to upgrade (step 200), intercepting and storage data (step 210), after the intact data to be stored, the literal output (TextOut) (step 220) of recovery standard, and remove clasp joint function (Unhook) (step 230), to finish the flow process of video data interception module.
Whether ensuing testing procedure is that all data of description relevant with peripheral unit are stored in the tabulation, identical in order to the data of intercepting in the comparison step 210 and storage, reaches the purpose of automatic test.
Fig. 4 is according to registry data read module process flow diagram of the present invention.At first open peripheral unit key value (step 240), then search all sub-key values (step 250), from each key value, read the description value (step 260) of peripheral unit again, description value with peripheral unit is stored in the tabulation (step 270), to finish the flow process of registry data read module at last.
At this moment, the program of whole automatic test pcmcia card enters into last comparison program, and Fig. 5 is according to comparison module process flow diagram of the present invention.At first read in the tabulation first description value (step 280), and then judge whether with step 210 in the data identical (step 290) of intercepting and storage, if (denying) inequality then produces a correct test report (step 300); If identical (being) then reads the next item down description value (step 310) in the tabulation, and judge whether tabulation is empty (step 320), if tabulation is for empty, then produce the test report (step 330) of a mistake, otherwise return step 290, carry out the comparison of the next item down description value.
Though the present invention with aforesaid preferred embodiment explanation as above; right its is not in order to limit the present invention; any those skilled in the art; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, thus protection scope of the present invention when with claims the person of being defined be as the criterion.

Claims (12)

1. automatic method of test pcmcia card, this method comprises the following step at least:
One control desk routine library module is provided, and by the application interface of this control desk routine library, inquiry also shows the PCMCIA module;
Provide a video data interception module, in order to the literal output in intercepting and the storage PCMCIA module list;
Provide a registry data read module, in order to peripheral unit description value is stored in the tabulation;
One comparison module is provided,, does one relatively with this literal output that from this PCMCIA module list, intercepts and store according to this peripheral unit description value of being stored in this tabulation; And
Produce a reporting modules, in order to show the test report of this correct or wrong pcmcia card.
2. the method for automatic test pcmcia card as claimed in claim 1, wherein above-mentioned intercepting is also stored the output of this literal and is utilized the clasp joint function to be written into the dynamic link routine library to finish.
3. the method for automatic test pcmcia card as claimed in claim 1, wherein above-mentioned literal output is replaced grapholect output with self-defined literal output.
4. the method for automatic test pcmcia card as claimed in claim 1, wherein above-mentioned peripheral unit description value reads from the peripheral unit key value.
5. automatic method of test pcmcia card is characterized in that:
By a control desk routine library module, inquiry also shows the PCMCIA module, again by a video data interception module, intercepts and store the data in this PCMCIA module list, the data of these data and a registry data read module are compared, to produce a reporting modules.
6. the method for automatic test pcmcia card as claimed in claim 5 wherein above-mentioned inquired about and is shown that this PCMCLA module finishes with the application interface of this control desk routine library.
7. the method for automatic test pcmcia card as claimed in claim 5, the data in the wherein above-mentioned PCMCIA module list are literal output.
8. the method for automatic test pcmcia card as claimed in claim 7, wherein above-mentioned literal output utilizes the clasp joint function to be written into the dynamic link routine library and finishes.
9. the method for automatic test pcmcia card as claimed in claim 7, wherein above-mentioned literal output is replaced grapholect output with self-defined literal output.
10. the method for automatic test pcmcia card as claimed in claim 5, the data of wherein above-mentioned registry data read module are peripheral unit description value.
11. the method for automatic test pcmcia card as claimed in claim 10, wherein above-mentioned peripheral unit description value reads from the peripheral unit key value.
12. the method for automatic test pcmcia card as claimed in claim 5, wherein above-mentioned reporting modules is in order to show the test report of this correct or wrong pcmcia card.
CNB001089390A 2000-05-19 2000-05-19 Autoamtic test method of memory card and international association card in PC Expired - Fee Related CN1156757C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB001089390A CN1156757C (en) 2000-05-19 2000-05-19 Autoamtic test method of memory card and international association card in PC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB001089390A CN1156757C (en) 2000-05-19 2000-05-19 Autoamtic test method of memory card and international association card in PC

Publications (2)

Publication Number Publication Date
CN1325067A CN1325067A (en) 2001-12-05
CN1156757C true CN1156757C (en) 2004-07-07

Family

ID=4579343

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001089390A Expired - Fee Related CN1156757C (en) 2000-05-19 2000-05-19 Autoamtic test method of memory card and international association card in PC

Country Status (1)

Country Link
CN (1) CN1156757C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101351008B (en) * 2007-07-20 2011-12-28 英华达(上海)科技有限公司 Method for debugging a test platform and system for testing handhold set thereof
US7743292B2 (en) * 2008-06-13 2010-06-22 Silicon Motion Inc. Apparatus and method for memory card testing
CN104932958B (en) * 2014-03-18 2018-11-06 神讯电脑(昆山)有限公司 Computer card class equipment interface function automatic detection method

Also Published As

Publication number Publication date
CN1325067A (en) 2001-12-05

Similar Documents

Publication Publication Date Title
US6167494A (en) Method and system for recovering from operating system failure
CN101076168B (en) Method for managing intelligent terminal system and intelligent terminal
US5636357A (en) Memory card and method for operation in a plurality of systems having incompatible object code format requirements
US6795327B2 (en) Semiconductor storage method and device supporting multi-interface
US7624233B2 (en) Portable storage device
EP0552873A1 (en) Modifying system configuration in a computer system
US7000231B1 (en) Method of manufacturing operating system master template, method of manufacturing a computer entity and product resulting therefrom, and method of producing a production version of an operating system
JP4597459B2 (en) Virtual ROM for device enumeration
EP1726097A1 (en) Portable universal data storage device
CN101894028B (en) Realization method and device for Linux kernel mirror image data supporting various CPUs
CN101403972A (en) Memory card guiding method and device of embedded system
US9460110B2 (en) File system extension system and method
US5675761A (en) Method and system for providing discontiguous drive support
CN106126277A (en) Multi-microprocessor and the upgrade method of external memory system
US7565524B2 (en) Computer backup system at BIOS level
SK226291A3 (en) Personal computer with identification of exchangeable memory medium
CN1156757C (en) Autoamtic test method of memory card and international association card in PC
KR19980015400A (en) How to save and restore data on graphics devices
CN105700917A (en) Method and apparatus for synchronizing DLL and database
US20100049749A1 (en) System of synchronizing data between storage devices and method thereof
CN1357840A (en) Computer security system
US5754852A (en) Apparatus for combining cellular telephone ring signals and PSTN ring signals
CN102110054B (en) Communication method and device for PCI (peripheral component interconnect) equipment and system memory
US6651024B1 (en) Method for automatic testing PCMCIA cards
CN1455342A (en) Method of setting BIOS of CMOS for back-up computer system on DMI segment

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20040707

Termination date: 20110519