CN101923504B - Card reader testing tool and card reader testing method - Google Patents
Card reader testing tool and card reader testing method Download PDFInfo
- Publication number
- CN101923504B CN101923504B CN2009103032821A CN200910303282A CN101923504B CN 101923504 B CN101923504 B CN 101923504B CN 2009103032821 A CN2009103032821 A CN 2009103032821A CN 200910303282 A CN200910303282 A CN 200910303282A CN 101923504 B CN101923504 B CN 101923504B
- Authority
- CN
- China
- Prior art keywords
- card reader
- interface
- card
- memory device
- measurement jig
- 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
Links
Images
Landscapes
- Credit Cards Or The Like (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention relates to a card reader testing tool. The card reader testing tool is connected with a computer through a card reader and comprises a microcontroller and a storing device chip, wherein the microcontroller is used for receiving a sensing command sent by the computer through an interface, recognizing the type of the interface connected with the card reader after the sensing command is received, analyzing the communication protocol of the interface and switching to the mode of the analyzed communication protocol so that data transmission complies with the criterion of the analyzed communication protocol, and the storing device chip is used for generating a read-write command in order to read and write the data on the storing device and sending the data read and written from the storing device to the computer according to the criterion of the communication protocol in order to judge whether the card reader is qualified or not.
Description
Technical field
The present invention relates to a kind of card reader measurement jig and card reader method of testing.
Background technology
Card reader is a kind of specialized equipment, has slot can insert storage card, and ports having can be connected to computing machine.Insert slot to the storage card that is fit to, port links to each other with computing machine and installs after the required driver, and computing machine just is used as a removable memory to storage card, thereby can pass through the card reader reading and writing memory card.
At present, the card reader manufacturing needs the performance of reading card device to test after accomplishing; Whether qualified with the check card reader; Usually the mode of test is on card reader, to insert storage card, by computing machine the data on the various storage cards is read and write, and whether communication is normal to judge interface on the card reader; If communication is normal, explain that then this card reader is qualified.Yet, when the reading card device is tested, need to prepare storage card; If on the card reader a plurality of dissimilar memory card interfaces are arranged, then need prepare the storage card of each type interface, for example; If card reader comprises SM Card Type interface (Smart Media Card; Smart media card), SD Card Type interface (Secure Digital Card, safe digital card), CF Card Type interface (Compact Flash Card, standard flash memory card), mmc card style interface (Multi Media Card; Multimedia card), MS Card Type interface (Memory Stick; Memory stick), XD Card Type interface (Extreme Digital Card, extreme digital card), TF Card Type interface (Trans Flash Card), then the user need prepare SM card, SD card, CF card, mmc card, MS card, XD card and TF card; Thus, improve the testing cost of enterprise.In addition, in the process of test, computing machine need be installed the driver of corresponding stored card, so many driver is installed is unfavorable for the stable of computing machine, has increased the load of computing machine, has reduced the efficient of test.
Summary of the invention
In view of above content, be necessary to provide a kind of card reader measurement jig, can be through simulating various dissimilar storage cards, and the driver of various storage cards need be installed at computing machine, and alleviated the load of computing machine, improved testing efficiency.
In view of above content; Also be necessary to provide a kind of card reader method of testing, can simulate various dissimilar storage cards, and the driver of various storage cards need be installed at computing machine through a card reader measurement jig; Alleviate the load of computing machine, improved testing efficiency.
A kind of card reader measurement jig; This card reader measurement jig links to each other with computing machine through card reader; The type of the interface that links to each other on the interface of this card reader measurement jig and the card reader is identical; This card reader measurement jig comprises: microcontroller is used for the detecting order that sends over through the interface receiving computer; Said microcontroller also is used to receive after the said detecting order, discerns the type of the interface that is connected with card reader, and resolves the communications protocol of this interface; Said microcontroller also is used to switch to the pattern of the communications protocol of said parsing, makes data transmission follow the standard of the communications protocol of said parsing; The memory device chip is used to generate read write command, with the data on the memory device of reading and writing said card reader measurement jig; Whether said memory device chip also is used for the data of reading and writing from the memory device of said card reader measurement jig are sent to computing machine according to the standard of said communications protocol, qualified to judge this card reader.
A kind of card reader method of testing; This method is applied in the card reader measurement jig; This card reader measurement jig comprises microcontroller, memory device chip and memory device, and link to each other with computing machine through card reader; The type of the interface that links to each other on the interface of this card reader measurement jig and the card reader is identical, and the method comprising the steps of: the detecting order that microcontroller sends over through the interface receiving computer; This microcontroller is discerned the type of the interface that is connected with card reader after receiving said detecting order, and resolves the communications protocol of this interface; This microcontroller switches to the pattern of the communications protocol of said parsing, makes data transmission follow the standard of the communications protocol of said parsing; The memory device chip generates read write command, with the data on the memory device of reading and writing said card reader measurement jig; Whether the data that this memory device chip will be read and write from the memory device of said card reader measurement jig send to computing machine according to the standard of said communications protocol, qualified to judge this card reader.
Compared to prior art; Described card reader measurement jig and card reader method of testing; Can simulate various dissimilar storage cards through a card reader measurement jig, reduce testing cost, and the driver of various storage cards need be installed at computing machine; Alleviate the load of computing machine, improved testing efficiency.
Description of drawings
Fig. 1 is the applied environment figure of card reader measurement jig of the present invention preferred embodiment.
Fig. 2 is the process flow diagram of card reader method of testing of the present invention preferred embodiment.
Embodiment
As shown in Figure 1, be the applied environment figure of card reader measurement jig of the present invention preferred embodiment.Wherein, this card reader measurement jig 2 is continuous through interface 11 corresponding on interface 21 and the card reader 1.The type of the interface 11 that links to each other on the interface 21 on the said card reader measurement jig 2 and the card reader 1 is identical.Particularly, in this preferred embodiment, the interface 21 of supposing card reader measurement jig 2 is mmc card interfaces, and then the interface 11 of card reader 1 also is the mmc card interface.Card reader measurement jig 2 and card reader 1 comprise various types of interfaces; Said interface according to type difference can be divided into: SM Card Type interface (Smart Media Card; Smart media card), SD Card Type interface (Secure Digital Card; Safe digital card), CF Card Type interface (Compact Flash Card, standard flash memory card), mmc card style interface (Multi Media Card, multimedia card), MS Card Type interface (Memory Stick; Memory stick), XD Card Type interface (Extreme Digital Card, extreme digital card), TF Card Type interface (Trans Flash Card) etc.Said card reader 1 is carried out communication through USB (USB:Universal Serial Bus) interface (not indicating among the figure) with computing machine 3, and the agreement of said communication is the USB communications protocol.This computing machine 3 can be personal computer, the webserver, can also be any computing machine that other is suitable for.
Described card reader measurement jig 2 comprises: microcontroller (MCU:Micro Controller Unit) 210, memory device chip 220 and memory device 230.
The detecting that said microcontroller 210 is used for sending over through interface receiving computer 3 is ordered.Described detecting order is used to start microcontroller 210.
Said microcontroller 210 also is used to receive after the said detecting order, discerns the type of the interface 21 that is connected with card reader 3, and resolves the communications protocol of this interface 21.In this preferred embodiment, discerning this interface 21 is mmc card interfaces, and resolves the communications protocol of this mmc card.After said microcontroller 210 is resolved the communications protocol of interface 21; Computing machine 3 can not need be installed the driver of the storage card of these interface 21 correspondences; For example; After microcontroller 210 was resolved the communications protocol of mmc card interface, computing machine 3 can not need the driver of installing M MC card just can carry out communication through this MMC interface.
Said microcontroller 210 also is used to switch to the pattern of the communications protocol of said parsing, makes data transmission follow the standard of the communications protocol of said parsing.
Said memory device chip 220 is used to generate read write command, with the data on the read-write memory device 230.Said memory device 230 is used for store test data, for example, stores a text that is used to test.Said memory device 230 can be flash memory (Flash) or micro harddisk, and in this preferred embodiment, described memory device 230 is Flash.Described memory device chip 220 is Flash control chips.
Whether said memory device chip 220 also is used for sending to computing machine 3 according to the standard of described communications protocol through interface 21 from the data of memory device 230 read-write, qualified to judge this card reader 1.In this preferred embodiment, if computing machine 3 can receive the data on the memory device 230, explain that interface 11 communications of card reader 1 are normal, then this card reader 1 is qualified, otherwise prompting card reader 11 is defective.Particularly; Suppose that memory device chip 220 has read the text A that is used to test of memory device 230 storages, if computing machine 3 can receive text file A, explains that then interface 11 communications of card reader 1 are normal; This card reader 1 is qualified; Otherwise the text file A that does not receive text file A or reception as if computing machine 3 is imperfect, and then this card reader 1 is defective.
As shown in Figure 2, be the process flow diagram of card reader method of testing of the present invention preferred embodiment.
Step S10, the detecting order that microcontroller 210 sends over through interface receiving computer 3.Described detecting order is used to start microcontroller 210.
Step S11, microcontroller 210 receive after the said detecting order, discern the type of the interface 21 that is connected with card reader 3, and resolve the communications protocol of this interface 21.In this preferred embodiment, discerning this interface 21 is mmc card interfaces, and resolves the communications protocol of this mmc card interface.After said microcontroller 210 is resolved the communications protocol of interface 21; Computing machine 3 can not need be installed the driver of the storage card of these interface 21 correspondences; For example; After microcontroller 210 was resolved the communications protocol of mmc card interface, computing machine 3 can not need the driver of installing M MC card just can carry out communication through this MMC interface.
Step S12, microcontroller 210 switches to the pattern of the communications protocol of said parsing, makes data transmission follow the standard of the communications protocol of said parsing.
Step S13, memory device chip 220 generates read write command, with the data on the read-write memory device 230.Said memory device 230 is used for store test data, for example, stores a text that is used to test.Said memory device 230 can be flash memory (Flash) or micro harddisk, and in this preferred embodiment, described memory device 230 is Flash.Described memory device chip 220 is Flash control chips.
Step S14, whether memory device chip 220 will send to computing machine 3 according to the standard of described communications protocol through interface 21 from the data of memory device 230 read-write, qualified to judge this card reader 1.In this preferred embodiment, if computing machine 3 can receive the data on the memory device 230, explain that interface 11 communications of card reader 1 are normal, then this card reader 1 is qualified, otherwise prompting card reader 11 is defective.Particularly; Suppose that memory device chip 220 has read the text A that is used to test of memory device 230 storages, if computing machine 3 can receive text file A, explains that then interface 11 communications of card reader 1 are normal; This card reader 1 is qualified; Otherwise the text file A that does not receive text file A or reception as if computing machine 3 is imperfect, and then this card reader 1 is defective.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to above preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to spirit and the scope that replacement should not break away from technical scheme of the present invention technical scheme of the present invention.
Claims (8)
1. card reader measurement jig, this card reader measurement jig links to each other with computing machine through card reader, it is characterized in that, and the type of continuous interface is identical on the interface of this card reader measurement jig and the card reader, and this card reader measurement jig comprises:
Microcontroller is used for the detecting order that sends over through the interface receiving computer;
Said microcontroller also is used to receive after the said detecting order, discerns the type of the interface that is connected with card reader, and resolves the communications protocol of this interface;
Said microcontroller also is used to switch to the pattern of the communications protocol of said parsing, makes data transmission follow the standard of the communications protocol of said parsing;
The memory device chip is used to generate read write command, with the data on the memory device of read-write card reader measurement jig; And
Whether said memory device chip also is used for the data of reading and writing from the memory device of card reader measurement jig are sent to computing machine according to the standard of said communications protocol, qualified to judge this card reader.
2. card reader measurement jig as claimed in claim 1; It is characterized in that described interface comprises: SM Card Type interface, SD Card Type interface, CF Card Type interface, mmc card style interface, MS Card Type interface, XD Card Type interface and TF Card Type interface.
3. card reader measurement jig as claimed in claim 1 is characterized in that, described memory device chip is the Flash control chip.
4. card reader measurement jig as claimed in claim 3 is characterized in that described memory device is Flash.
5. card reader method of testing; This method is applied in the card reader measurement jig, and this card reader measurement jig comprises microcontroller, memory device chip and memory device; And link to each other with computing machine through card reader; It is characterized in that the type of the interface that links to each other on the interface of this card reader measurement jig and the card reader is identical, the method comprising the steps of:
The detecting order that microcontroller sends over through the interface receiving computer;
This microcontroller is discerned the type of the interface that is connected with card reader after receiving said detecting order, and resolves the communications protocol of this interface;
This microcontroller switches to the pattern of the communications protocol of said parsing, makes data transmission follow the standard of the communications protocol of said parsing;
The memory device chip generates read write command, with the data on the memory device of read-write card reader measurement jig; And
Whether the data that this memory device chip will be read and write from the memory device of card reader measurement jig send to computing machine according to the standard of said communications protocol, qualified to judge this card reader.
6. card reader method of testing as claimed in claim 5; It is characterized in that described interface comprises: SM Card Type interface, SD Card Type interface, CF Card Type interface, mmc card style interface, MS Card Type interface, XD Card Type interface and TF Card Type interface.
7. card reader method of testing as claimed in claim 5 is characterized in that, described memory device chip is the Flash control chip.
8. card reader method of testing as claimed in claim 7 is characterized in that described memory device is Flash.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103032821A CN101923504B (en) | 2009-06-16 | 2009-06-16 | Card reader testing tool and card reader testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103032821A CN101923504B (en) | 2009-06-16 | 2009-06-16 | Card reader testing tool and card reader testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101923504A CN101923504A (en) | 2010-12-22 |
CN101923504B true CN101923504B (en) | 2012-11-21 |
Family
ID=43338457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009103032821A Expired - Fee Related CN101923504B (en) | 2009-06-16 | 2009-06-16 | Card reader testing tool and card reader testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101923504B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102692578B (en) * | 2011-03-21 | 2016-04-27 | 纬创资通(昆山)有限公司 | Be used for testing the test card of the card reader with multiple memory card specifications |
CN103366830A (en) * | 2012-03-30 | 2013-10-23 | 点序科技股份有限公司 | Testing device of memory card |
CN104034992A (en) * | 2013-03-08 | 2014-09-10 | 达丰(上海)电脑有限公司 | Card reader pin test fixture and method |
CN103594122B (en) * | 2013-11-13 | 2016-08-17 | 福建联迪商用设备有限公司 | A kind of for realizing logic alternative method and the circuit that memory card interface is tested |
CN103884938B (en) * | 2014-03-20 | 2017-01-04 | 惠州市和宏电线电缆有限公司 | A kind of measurement jig |
CN105680960B (en) * | 2015-12-29 | 2018-08-10 | 深圳市金溢科技股份有限公司 | A kind of Bluetooth card reader automated testing method, test host computer and test system |
CN107862224B (en) * | 2016-09-22 | 2021-04-02 | 上海复旦微电子集团股份有限公司 | Test equipment and test method for IC card reader-writer |
CN108809754A (en) * | 2018-05-18 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of TF Card measuring signal integrality system and methods under BMC |
CN114185826A (en) * | 2021-12-13 | 2022-03-15 | 深圳市绿联科技股份有限公司 | Interface adapter for external storage equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1265762A (en) * | 1997-07-31 | 2000-09-06 | 格姆普拉斯有限公司 | Smart card reader with microcontroller and security component |
CN1932775A (en) * | 2005-09-15 | 2007-03-21 | 鸿富锦精密工业(深圳)有限公司 | Card reader testing system and method |
CN101266642A (en) * | 2007-03-16 | 2008-09-17 | 瑞昱半导体股份有限公司 | Unit card reader control chip and its method for checking interference |
-
2009
- 2009-06-16 CN CN2009103032821A patent/CN101923504B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1265762A (en) * | 1997-07-31 | 2000-09-06 | 格姆普拉斯有限公司 | Smart card reader with microcontroller and security component |
CN1932775A (en) * | 2005-09-15 | 2007-03-21 | 鸿富锦精密工业(深圳)有限公司 | Card reader testing system and method |
CN101266642A (en) * | 2007-03-16 | 2008-09-17 | 瑞昱半导体股份有限公司 | Unit card reader control chip and its method for checking interference |
Also Published As
Publication number | Publication date |
---|---|
CN101923504A (en) | 2010-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101923504B (en) | Card reader testing tool and card reader testing method | |
US20220366159A1 (en) | Electronic device | |
US20100115200A1 (en) | Method for communication with a multi-function memory card | |
CN105955911B (en) | Hot plug control circuit and control method thereof | |
CN102004892B (en) | Multi-function card reader testing device and method | |
AU2018445738A1 (en) | Memory card, memory card adapter, and terminal device | |
CN101377749A (en) | Method, programmable logic device, system and apparatus for checking memory data | |
CN101419843A (en) | Flash memory recognition method, recognition device and chip controller | |
CN110619914A (en) | Mass production method for solid state disk with PCIe interface mass production device | |
CN102915209B (en) | Storage control chip, storage equipment and system data writing method | |
CN111447121B (en) | Test method, device, equipment and storage medium of PCIE controller | |
CN103809051A (en) | Automatic test system and switch matrix and detection method thereof in automatic test system | |
US9158609B2 (en) | Universal serial bus testing device | |
CN100458724C (en) | Test platform and method for testing embedded file system and protocol | |
CN101364198A (en) | Testing tool for card reading interface and testing method thereof | |
CN216250003U (en) | Flash memory test board and test device | |
CN102305906A (en) | Chip testing method and device | |
CN105354107A (en) | Data transmission method and system for NOR Flash | |
CN113219319B (en) | Integrated test board card, chip test system and chip test method | |
CN101533372B (en) | Data accessing system | |
CN103870368A (en) | SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method | |
TWI416133B (en) | Fixture and method for testing a card reader | |
CN101533373B (en) | Data accessing system | |
JP7233579B2 (en) | electronic device | |
CN103389957A (en) | Multi-interface communication device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121121 Termination date: 20140616 |
|
EXPY | Termination of patent right or utility model |