1. Field of Invention
The present invention relates to a testing device of a card reading interface and a testing method thereof, and more particularly to a testing device for testing a card reading interface having a plurality of memory card interfaces.
2. Related Art
As more and more types of memory cards are available now, users have to buy card reading interfaces corresponding to the memory cards, so as to access data in the memory cards. For example, if a user uses a CF memory card, he/she must buy an additional CF card reading interface. If a user wants to access data in an SD memory card, he/she must buy an additional SD card reading interface. Therefore, a memory card of one specification requires a corresponding card reading interface, which causes a lot of inconvenience to the user. In order to solve the problem that many card reading interfaces are required, manufacturers have integrated a plurality of specifications of card reading interfaces into one body. An all-in-one card reading interface 110 arranges various memory card interfaces in a same memory card interface 111 sequentially according to shapes of the memory cards.
In order to test the all-in-one card reading interface 110, a normal testing method of the manufacturers is as follows. Referring to
In particular, as many laptop computers must be tested, the memory cards must be inserted in or drawn out for more times, so they are easier to be abraded. Therefore, the manufacturers must purchase new memory cards frequently, which will increase the cost of the testing.
Accordingly, the present invention is directed to providing a testing device of a card reading interface, which is connected to a card reading interface of a laptop computer. A memory card slot is arranged in the card reading interface, and a plurality of specifications of memory card interfaces is arranged in the memory card slot.
In order to achieve the aforementioned objective, the present invention provides a testing device of a card reading interface. A laptop computer provides a memory card interface having at least one memory card interface. The testing device is electrically connected to the memory card slot. The testing device includes memory cards, a switching unit, a connecting part, and a connecting circuit.
The testing device provides the memory cards of a plurality of interface specifications. The switching unit is electrically connected to the laptop computer, and receives a switching instruction sent from the laptop computer. The switching unit selects the corresponding memory card according to the received switching instruction. The connecting part is electrically connected between the memory card slot and the switching unit. The connecting circuit is electrically connected between the switching unit and the memory cards, and transmits detection data, such that the laptop computer detects the detection data before and after the detection data are accessed, so as to determine whether the memory card slot functions normally.
In another aspect, the present invention provides a testing method of a card reading interface, which is connected to a card reading interface in a laptop computer. A memory card slot is arranged in the card reading interface, and a plurality of specifications of memory card interfaces is arranged in the memory card slot. The testing method includes the following steps.
A plurality of memory cards is integrated in a testing device. The testing device is electrically connected with memory card interfaces of the memory card slot. A memory card under test is selected from the plurality of memory cards, and communication is established between the selected memory card and the corresponding memory card interface in the memory card slot through the testing device. A detection data is sent to the selected memory card, and the sent detection data is read from the selected memory card. The sent detection data and the read data are compared, so as to determine whether an error occurs in the corresponding memory card interface in the memory card slot.
The present invention provides a testing device of a card reading interface, which is connected to a card reading interface having a plurality of specifications of memory card interfaces, so as to reduce the times that memory cards are inserted in or drawn out from the card reading interface slot. The laptop computer sends the switching instruction, so as to select the memory card interface under test.
Further scope of applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.
The present invention will become more fully understood from the detailed description given herein below for illustration only, and thus are not limitative of the present invention, and wherein:
The present invention provides a testing device 300 of a card reading interface 110. A laptop computer provides a memory card slot, which can be, but is not limited to, memory cards of Compact Flash (CF) interface, Secure Digital (SD) interface, Memory Stick (MS) interface, Smart Media (SM) interface, XD interface or Multimedia Card (MMC) interface, or Memory Stick Pro (MSP) interface. The testing device 300 includes a connecting part 310, memory cards 320, a switching unit 330, and a connecting circuit 340.
The switching unit 330 is electrically connected to the laptop computer, and receives a switching instruction sent from the laptop computer. The switching unit 330 selects a corresponding memory card 320 according to the received switching instruction. The switching instruction is a Serial Peripheral Interface (SPI) command. The SPI is a synchronous serial data protocol between a microprocessor and peripheral devices for providing high bandwidth network connection between the CPU and peripheral elements.
The connecting circuit 340 is electrically connected between the switching unit 330 and the memory cards 320, and transmits detection data to the memory cards 320, such that the laptop computer detects the detection data before and after the detection data are accessed, so as to determine whether the memory card slot 111 functions are normally. The laptop computer sends the SPI command, so as to trigger a chip selecting pin in the memory card 320.
As for the operating flow of the testing device of the present invention, the testing method has the following steps. Referring to
In order to describe the operating flow of the present invention in detail, the SD, Mini SD, and MMC memory cards are taken as examples. If the card reading interface 110 includes more memory cards 320 of different specifications, the method below can also be used to switch between various memory cards 320.
Referring to
The present invention provides a testing device 300 of a card reading interface 110, which is connected to a card reading interface slot having a plurality of specifications of memory card interfaces, so as to reduce the times that memory cards are inserted in or drawn out from the card reading interface slot. The laptop computer sends the switching instruction, so as to select the memory card interface under test.
The invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the following claims.