CN101923504A - Card reader testing tool and card reader testing method - Google Patents
Card reader testing tool and card reader testing method Download PDFInfo
- Publication number
- CN101923504A CN101923504A CN2009103032821A CN200910303282A CN101923504A CN 101923504 A CN101923504 A CN 101923504A CN 2009103032821 A CN2009103032821 A CN 2009103032821A CN 200910303282 A CN200910303282 A CN 200910303282A CN 101923504 A CN101923504 A CN 101923504A
- Authority
- CN
- China
- Prior art keywords
- card reader
- interface
- card
- memory device
- microcontroller
- 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
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.The storage card that is fit to is inserted slot, and 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, after the card reader manufacturing is finished, need the performance of reading card device to test, whether qualified with the check card reader, usually the mode of test is to insert storage card on card reader, 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, illustrate 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 to 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 FlashCard, 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, the extreme digital card), TF Card Type interface (Trans Flash Card), then the user need prepare the SM card, the SD card, the CF card, mmc card, the 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 by 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 by 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 by card reader, and this card reader measurement jig comprises: microcontroller is used for the detecting order that sends over by the interface receiving computer; Described microcontroller also is used to receive after the described detecting order, discerns the type of the interface that is connected with card reader, and resolves the communications protocol of this interface; Described microcontroller also is used to switch to the pattern of the communications protocol of described parsing, makes data transmission follow the standard of the communications protocol of described parsing; The memory device chip is used to generate read write command, with the data on the read-write memory device; Whether described memory device chip also is used for the data that will read and write from memory device and sends to computing machine according to the standard of described 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 by card reader, the method comprising the steps of: the detecting order that microcontroller sends over by the interface receiving computer; This microcontroller is discerned the type of the interface that is connected with card reader after receiving described detecting order, and resolves the communications protocol of this interface; This microcontroller switches to the pattern of the communications protocol of described parsing, makes data transmission follow the standard of the communications protocol of described parsing; The memory device chip generates read write command, with the data on the read-write memory device; Whether the data that this memory device chip will be read and write from memory device send to computing machine according to the standard of described 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 by a card reader measurement jig, reduced 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 by 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 described 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, described 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 (CompactFlash 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.Described card reader 1 is carried out communication by USB (universal serial bus) (USB:UniversalSerial Bus) interface (not indicating among the figure) with computing machine 3, and the agreement of described 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.
Described microcontroller 210 is used for the detecting order that sends over by interface receiving computer 3.Described detecting order is used to start microcontroller 210.
Described microcontroller 210 also is used to receive after the described 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 described microcontroller 210 is resolved the communications protocol of interface 21, computing machine 3 can not need to install 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, the driver that computing machine 3 can not need mmc card is installed just can carry out communication by this MMC interface.
Described microcontroller 210 also is used to switch to the pattern of the communications protocol of described parsing, makes data transmission follow the standard of the communications protocol of described parsing.
Described memory device chip 220 is used to generate read write command, with the data on the read-write memory device 230.Described memory device 230 is used for store test data, for example, stores a text that is used to test.Described 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 described memory device chip 220 also is used for and will sends to computing machine 3 according to the standard of described communications protocol by 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, illustrate 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, interface 11 communications that card reader 1 then is described 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 by interface receiving computer 3.Described detecting order is used to start microcontroller 210.
Step S11, microcontroller 210 receive after the described 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 described microcontroller 210 is resolved the communications protocol of interface 21, computing machine 3 can not need to install 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, the driver that computing machine 3 can not need mmc card is installed just can carry out communication by this MMC interface.
Step S12, microcontroller 210 switches to the pattern of the communications protocol of described parsing, makes data transmission follow the standard of the communications protocol of described parsing.
Step S13, memory device chip 220 generates read write command, with the data on the read-write memory device 230.Described memory device 230 is used for store test data, for example, stores a text that is used to test.Described 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 by 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, illustrate 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, interface 11 communications that card reader 1 then is described 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 had been described in detail 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 the spirit and scope that replacement should not break away from technical solution 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 by card reader, it is characterized in that, and this card reader measurement jig comprises:
Microcontroller is used for the detecting order that sends over by the interface receiving computer;
Described microcontroller also is used to receive after the described detecting order, discerns the type of the interface that is connected with card reader, and resolves the communications protocol of this interface;
Described microcontroller also is used to switch to the pattern of the communications protocol of described parsing, makes data transmission follow the standard of the communications protocol of described parsing;
The memory device chip is used to generate read write command, with the data on the read-write memory device; And
Whether described memory device chip also is used for the data that will read and write from memory device and sends to computing machine according to the standard of described 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 by card reader, it is characterized in that the method comprising the steps of:
The detecting order that microcontroller sends over by the interface receiving computer;
This microcontroller is discerned the type of the interface that is connected with card reader after receiving described detecting order, and resolves the communications protocol of this interface;
This microcontroller switches to the pattern of the communications protocol of described parsing, makes data transmission follow the standard of the communications protocol of described parsing;
The memory device chip generates read write command, with the data on the read-write memory device; And
Whether the data that this memory device chip will be read and write from memory device send to computing machine according to the standard of described 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 true CN101923504A (en) | 2010-12-22 |
CN101923504B 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) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102692578A (en) * | 2011-03-21 | 2012-09-26 | 纬创资通(昆山)有限公司 | Test card used for testing card reader having a plurality of memory card specifications |
CN103366830A (en) * | 2012-03-30 | 2013-10-23 | 点序科技股份有限公司 | Testing device of memory card |
CN103594122A (en) * | 2013-11-13 | 2014-02-19 | 福建联迪商用设备有限公司 | Logic substitution method and circuit for realizing memory card interface testing |
CN103884938A (en) * | 2014-03-20 | 2014-06-25 | 惠州市和宏电线电缆有限公司 | Test fixture |
CN104034992A (en) * | 2013-03-08 | 2014-09-10 | 达丰(上海)电脑有限公司 | Card reader pin test fixture and method |
CN105680960A (en) * | 2015-12-29 | 2016-06-15 | 深圳市金溢科技股份有限公司 | Automatic test method for Bluetooth card reader, test upper computer and test system |
CN107862224A (en) * | 2016-09-22 | 2018-03-30 | 上海复旦微电子集团股份有限公司 | A kind of test equipment and its method of testing of IC-card read write line |
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 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2766942B1 (en) * | 1997-07-31 | 1999-10-01 | Gemplus Card Int | CHIP CARD READER WITH MICROCONTROLLER AND SECURITY COMPONENT |
CN1932775A (en) * | 2005-09-15 | 2007-03-21 | 鸿富锦精密工业(深圳)有限公司 | Card reader testing system and method |
CN100585611C (en) * | 2007-03-16 | 2010-01-27 | 瑞昱半导体股份有限公司 | 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
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102692578A (en) * | 2011-03-21 | 2012-09-26 | 纬创资通(昆山)有限公司 | Test card used for testing card reader having a plurality of 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 |
CN103594122A (en) * | 2013-11-13 | 2014-02-19 | 福建联迪商用设备有限公司 | Logic substitution method and circuit for realizing memory card interface testing |
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 |
CN103884938A (en) * | 2014-03-20 | 2014-06-25 | 惠州市和宏电线电缆有限公司 | Test fixture |
CN105680960A (en) * | 2015-12-29 | 2016-06-15 | 深圳市金溢科技股份有限公司 | Automatic test method for Bluetooth card reader, test upper computer and test system |
CN105680960B (en) * | 2015-12-29 | 2018-08-10 | 深圳市金溢科技股份有限公司 | A kind of Bluetooth card reader automated testing method, test host computer and test system |
CN107862224A (en) * | 2016-09-22 | 2018-03-30 | 上海复旦微电子集团股份有限公司 | A kind of test equipment and its method of testing of IC-card read write line |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN101923504B (en) | 2012-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101923504B (en) | Card reader testing tool and card reader testing method | |
US20220366159A1 (en) | Electronic device | |
RU2445676C2 (en) | Method of communication with multifunctional memory card | |
CN105955911B (en) | Hot plug control circuit and control method thereof | |
CN102609741B (en) | A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof | |
CN102004892B (en) | Multi-function card reader testing device and method | |
CN101419843A (en) | Flash memory recognition method, recognition device and chip controller | |
CN101377749A (en) | Method, programmable logic device, system and apparatus for checking memory data | |
CN104580977A (en) | Data-mapping-mode transmission and recognition method and device | |
CN110619914A (en) | Mass production method for solid state disk with PCIe interface mass production device | |
CN102073602A (en) | Computer system, connection control device as well as connecting and disconnecting method | |
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 | |
CN105004957A (en) | SD card test method and test device | |
CN101364198A (en) | Testing tool for card reading interface and testing method thereof | |
CN100458724C (en) | Test platform and method for testing embedded file system and protocol | |
CN101206613A (en) | High speed basic input/output system debug card | |
CN102305906A (en) | Chip testing method and device | |
CN113219319B (en) | Integrated test board card, chip test system and chip test method | |
CN101499049A (en) | Method for data transfer between memory cards of hand-held electronic equipment | |
CN115509965A (en) | Memory controller and link identification method | |
TWI416133B (en) | Fixture and method for testing a card reader | |
CN101533372A (en) | Data accessing system | |
CN101533373B (en) | Data accessing system |
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 |