A kind of storage card and transmission mode selection method thereof with multi-interface function
Technical field
The present invention relates to a kind of storage card and transmission mode selection method thereof, particularly relate to a kind of storage card with multi-interface function.
Background technology
Universal day by day along with Internet appliance product (IA:Internet Appliance), novel data storage medium has also been scurried fast, and wherein storage card (Memory Card) owing to possess has that volume is little, power consumption low and advantage such as high capacity, become the main product in current market, to be applicable in information products such as various digital cameras, digital Video Camera, MP3 player, mobile phone, PDA, GPS or the computer system.
But, in the storage card evolution, because difference at purpose of design, formulation specification time, the selection of material or dominant firm, there are various different storing card specifications and storage card transmission mode on the market, for example mmc card (Multimedia Card), HS mmc card (High Speed Multimedia Card), SD card (Secure Digital Card), SM card (SmartMedia Card), MS card (Memory Stick Card) or CF card (Compact Flash Card) etc., and compatibility issue is therebetween perplexing the user always.
These storage card transmission modes, but especially in the mount message product and the transmission mode of the less storage card of volume, with on the general information product the normal USB transfer bus (Universal Serial Bus) that uses compare, obviously on the low side on its delivery flow rate and the transmission speed, can't compare mutually with the USB transfer bus, this also is the difficult problem that industry is wished breakthrough for a long time always.
For this reason, industry develops and a kind of data transformation interface device, as shown in Figure 1, it is mainly at each storage card, for example mmc card 10, HS mmc card 102, SD card 103 or other interface memory card 104, and be provided with a card reader 15 (Card Reader) between the computer system 17, each storage card 10,102,103,104 can select the transfer bus 150 (MMC transfer bus) that meets its host-host protocol pattern with one individually, 152 (HS MMC transfer bus), 153 (SD transfer bus), 154 (other transfer bus) electrically connect this card reader, and carry out data transmission with its transmission mode individually, then can adopt USB transfer bus 157 between card reader 15 and the computer system 17, though can transmission speed faster the USB transmission mode carry out data transmission, but owing to carry out with the slower storage card transmission mode of transmission speed between storage card 10 and the card reader 15, therefore, its overall data transmission speed is based on the storage card transmission mode.
All be provided with at least one data storage medium 11 in each storage card 10,102,103,104, it is controlled by the read write command of a data read-write control device 13, therefore can be in order to storage data.Each storage card 10,102,103,104 all can come the information products compatible with it to electrically connect and use by another transfer bus 180 that is consistent with its transmission mode (MMC transfer bus), 182 (HS MMC transfer bus), 183 (SD transfer bus), 184 (other transfer bus), for example supports MMC information products 19, supports HS MMC information products 192, supports SD information products 193 or supports other interface message product 194.Each storage card all has its other host-host protocol, even therefore structurally can be compatible, on data read, also can't link up, seldom can compatiblely use, impersonalityization not only in the use, and increased the consumption amount of money of user on storage card is bought.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of storage card and transmission mode selection method thereof with multi-interface function, mainly be in storage card, to be provided with a multi-interface controller, share interface bus by one and electrically connect a host computer system, and can detect host computer system can be compatible transmission mode, and to set the transmission mode of sharing interface bus and multi-interface controller, not only applicable and be compatible with the host computer system of multiple different size, and can therefore save the cost of choosing various storage cards again.
Second technical matters to be solved by this invention is to provide a kind of storage card and transmission mode selection method thereof with multi-interface function, share the host computer system of interface bus by a multi-interface controller and, to increase storage card convenience and hommization in the use applicable to multiple different size.
The 3rd technical matters to be solved by this invention is to provide a kind of storage card and transmission mode selection method thereof with multi-interface function, can under the state that does not use existing card reader, can connect a computer system, and all can adopt USB transmission mode faster on the overall transfer speed, not only make things convenient for the user to portably use, and can significantly increase its data rate again.
To achieve these goals, the invention provides a kind of storage card with multi-interface function, primary structure includes: at least one data storage medium;
One multi-interface controller, include a storage card protocol processor, described storage card protocol processor comprises a USB processor, MMC/HS MMC processor or SD processor, perhaps described three kinds of processors wherein two, perhaps described three kinds of processors, it can electrically connect described data storage medium by a data read-write control device; And
One shares interface bus, can be electrically connected at a described storage card protocol processor and a host computer system respectively, include a plurality of transmission interface agreements in it, can by one mode detection/switch be chosen between described multi-interface controller and the described host computer system carry out a USB transmission mode, HS MMC transmission mode, MMC transmission mode and SD transmission mode one of them, described storage card protocol processor is selected described USB processor, MMC/HS MMC processor or the SD processor of institute's desire collocation accordingly.
Said memory card, its characteristics be, described storage card protocol processor can select a USB processor, MMC/HS MMC processor, SD processor and combined type thereof one of them.
Said memory card, its characteristics are, described storage card protocol processor also can select a MS processor, SM processor and combined type thereof one of them, and between described multi-interface controller and described host computer system, also can select to carry out a MS transmission mode and SM transmission mode one of them.
Said memory card, its characteristics are that described mode detection/switch is located in the described multi-interface controller, can be electrically connected at described storage card protocol processor and described shared interface bus respectively.
Said memory card, its characteristics are that described mode detection/switch is located in the described host computer system, can be electrically connected at described shared interface bus.
Said memory card, its characteristics are that described host computer system may be selected to be a computer system.
Described computer system is desktop computer or laptop computer.
Described host computer system is information products.
Described information products are digital camera, digital Video Camera, MP3 player, mobile phone, PDA, GPS.
The present invention also provides a kind of transmission mode selection method of storage card, and its characteristics are that key step includes: wait for the common sign that receives a MMC/SD transmission mode; If do not receive the common sign of this MMC/SD transmission mode, whether detect the stand-by period above a scheduled time, if not, then continue to wait for the common sign that receives the MMC/SD pattern, if then set the described USB transmission mode of execution; If receive the common sign of this MMC/SD transmission mode, wait for the reaction sign that receives a SD transmission mode, if then set and carry out described SD transmission mode; If do not receive the reaction sign of this SD transmission mode, wait for the reaction sign that receives a HS MMC transmission mode, if, then carry out described HS MMC transmission mode, if not, then carry out described MMC transmission mode.
The present invention also provides a kind of transmission mode selection method of memory card bus, and its characteristics are that step includes: judge whether the storage card that is connected supports the compatible transmission mode of a USB; If then will share interface bus and host computer system and be set at a USB transmission mode; If not, detect whether connect storage card be one of in a mmc card, HS mmc card and the SD khaki; If then assign reset order and HS MMC/MMC initial order; If not, wait for the connection of other storage cards; After receiving HS MMC/MMC initial order, whether the detection of stored card has correct response to described HS MMC/MMC initial order; If do not have, then assign reset order and SD initial order; If storage card has correct response to described HS MMC/MMC initial order, whether the detection of stored card has correct response to a HS MMC supported protocol; If do not have, then assign reset order and SD initial order; If have, then will share interface bus and host computer system and be set at a HS MMC transmission mode; If reach storage card described HS MMC/MMC initial order or HS MMC supported protocol are not had correct response, then receive the SD initial order, whether the detection of stored card has correct response to described SD initial order; If do not have, then assign the MMC initial order, and will share interface bus and host computer system is set at a MMC transmission mode; If have, then will share interface bus and host computer system and be set at a SD transmission mode.
Effect of the present invention, be not only applicable and be compatible with the host computer system of multiple different size, can therefore save the cost of choosing various storage cards again, share the host computer system of interface bus by a multi-interface controller and applicable to multiple different size, to increase storage card convenience and hommization in the use, and can under the state that does not use existing card reader, can connect a computer system, and all can adopt USB transmission mode faster on the overall transfer speed, not only make things convenient for the user to portably use, can significantly increase its data rate again.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Structural representation when Fig. 1 is connected with a host computer system for existing storage card;
Structural representation when Fig. 2 is connected with a host computer system for storage card of the present invention;
Fig. 2 A is the structural representation of storage card one preferred embodiment of the present invention;
Fig. 3 is the process flow diagram of storage card of the present invention one embodiment when selecting transmission mode;
Fig. 4 is storage card of the present invention its host computer system process flow diagram when selecting transmission mode when connecting a host computer system.
Wherein, accompanying drawing sign:
The 10-MMC storage card, 102-HS MM storage card
The 103-SD storage card, other interface memory card of 104-
The 11-data storage medium, 13-data read-write control device
The 15-calculating punch, the 150-MMC transfer bus
152-HS MMC transfer bus, the 153-SD transfer bus
Other transfer bus of 154-, the 157-USB transfer bus
The 17-computer system
The 180-MMC transfer bus, 182-HS MMC transfer bus
The 183-SD transfer bus, other transfer bus of 184-
19-supports the MMC information products, and 192-supports HS MMC information products
193-supports the SD information products, and 194-supports other interface message product
The 20-storage card, the 202-storage card
The 21-data storage medium
23-multi-interface controller, 230-storage card protocol processor
231-MMC/HS MMC processor, the 232-SD processor
The 233-USB processor, other interface processor of 234-
235-data read-write control device, 237-mode detection/switch
251-shares interface bus, and 252-shares interface bus
The 27-computer system, 277-mode detection/switch
The 28-host computer system
The 29-information products, 297-mode detection/switch
Embodiment
At first, see also Fig. 2 and Fig. 2 A, be respectively storage card of the present invention when being connected with a host computer system structural representation and the structural representation of storage card one preferred embodiment; As shown in the figure, but storage card of the present invention 20 mainly includes the data storage medium 21 and a multi-interface controller 23 of at least one storage data.Wherein, include a storage card protocol processor 230 in the multi-interface controller 23, MMC/HS MMC processor 231 for example, SD processor 232, USB processor 233 or other interface processor 234, each MMC/HS MMC processor 231, SD processor 232, one end of USB processor 233 or other interface processor 234 can be connected in a data read-write control device 235 individually, and collocation data read-write control device 235 is to carry out reading and writing data or to store action to this data storage medium 21, its other end then can be shared interface bus 251 to electrically connect one by one mode detection/switch 237, again by this shared interface bus 251 to be electrically connected at host computer system 28, for example a digital camera, digital Video Camera, the MP3 player, mobile phone, PDA, information products such as GPS 29 or desktop computer, computer systems such as laptop computer 27.
When shared interface bus 251 connects a host computer system 28 and a storage card 20 respectively, mode detection/switch 237 in the storage card 20 will detect the specific transmission mode that host computer system 28 is had, in other words, judge that exactly 28 of the host computer systems compatible transmission mode of arranging in pairs or groups is a USB transmission mode, HS MMC transmission mode, MMC transmission mode or SD transmission mode, the setting transmission mode (not shown) with as the continuation data transmission time.And if support two or more can compatible transmission mode, then select transmission speed a kind of faster in this embodiment as setting transmission mode, for example USB transmission mode.
Set transmission mode detected and set finish after, inside includes the shared interface bus 251 of a plurality of transmission interface agreement (not shown)s will select to be set at a USB transmission mode simultaneously, HS MMC transmission mode, the MMC transmission mode, SD transmission mode or other interface transmitting mode, and storage card protocol processor 230 also will be selected the MMC/HS MMC processor 231 of institute's desire collocation, SD processor 232, USB processor 233 or other interface processor 234, thereby can between host computer system 28 and data storage medium 21, construct a complete Data Transport Protocol pattern, and can under the situation that need not existing card reader, directly carry out reading or storing of data.
Other interface processor 234 also can be set at a SM processor, MS processor or its combined type.And this mode detection/switch 237 also might not need to be located in the storage card 20, also can select to be fixedly arranged in computer system 27 or the information products 29, to become one mode detection/switch 277 or one mode detection/switch 297.
Because, be provided with a plurality of MMC/HS MMC processors 231, SD processor 232, USB processor 233 or other interface processor 234 in the storage card 20 of the present invention, and the inner shared interface bus 251 of collocation with a plurality of transmission interface agreements, therefore no matter connect computer system 27 or in be located at information products 29, all can seek out suitable and compatible data-transmission mode, and select transmission speed the fastest, therefore, not only make things convenient for and hommization, and can significantly improve the transmission speed of data.
In addition, in another embodiment of the present invention, by sharing interface bus 252, its host computer system 28 also can connect general existing storage card 202, mode detection/switch 277 by host computer system 28 or 297 is to detect and to judge which kind of transmission mode storage card 202 or host computer system 28 support, and after selecting to configure its transmission mode, set shared interface transfer bus 252 and will be chosen as a USB transmission mode, the HSMMC transmission mode, the MMC transmission mode, SD transmission mode or other interface transmitting mode, same like this reaching need not to carry out the action of data read or storage at storage card under the situation of card reader.
Please consult Fig. 3 simultaneously, be the process flow diagram of storage card of the present invention one embodiment when selecting transmission mode; As shown in the figure, when storage card 20 of the present invention by sharing interface bus 251 when connecting a host computer system 28, it selects the step of transmission mode to have:
Is step 301 waited for the common sign that receives a MMC/SD transmission mode? if have, then proceed step 302; If not, then carry out step 312.
Does whether step 312 detect the stand-by period above a scheduled time? if not, get back to the reception work that step 301 continues the common sign of wait MMC/SD pattern.If then execution in step 313.
Step 313, the transmission mode that expression sets not is MMC transmission mode or SD transmission mode, therefore, can set this host computer system 28 and share interface bus 251 is a USB transmission mode, and can arrange in pairs or groups and select a USB processor 233 to use.
Step 302, the host computer system 28 that connected of expression are a kind of in a MMC transmission mode, HS MMC transmission mode, the SD transmission mode, therefore, wait for earlier receiving SD reaction sign? if not, continue execution in step 303.If then execution in step 323.
Step 323, expression have received SD reaction sign, and therefore, can set this host computer system 28 and share interface bus 251 is a SD transmission mode, and can arrange in pairs or groups and select a SD processor 232 to use.
Step 303, the host computer system 28 that connected of expression are a kind of in a MMC transmission mode or the HS MMC transmission mode, therefore, wait for earlier receiving HS MMC reaction sign? if continue execution in step 304.If not, execution in step 334 then.
Step 334, expression do not receive HS MMC reaction sign, and therefore, can set this host computer system 28 and share interface bus 251 is a MMC transmission mode, and can arrange in pairs or groups and select a MMC/HS MMC processor 231 to use.
Step 304, expression have received HS MMC reaction sign, and therefore, can set this host computer system 28 and share interface bus 251 is a HS MMC transmission mode, and can arrange in pairs or groups and select a MMC/HS MMC processor 231 to use.
By above-mentioned selection step, storage card 20 can be selected the kind of the storage card protocol processor 230 of institute's desire collocation use easily, be a USB processor 233, SD processor 232 or MMC/HS MMC processor 231, also can select the transmission interface agreement that it need be arranged in pairs or groups and use and share interface bus 251, to finish the storage card 20 that can be connected the protocol-compliant of host computer system 28 with this.
At last, please consult Fig. 2 and Fig. 4 simultaneously, for storage card of the present invention when connecting a host computer system, the process flow diagram of its host computer system when selecting transmission mode; As shown in the figure, when storage card 20,202 of the present invention by sharing interface bus 251 when connecting a host computer system 28, its host computer system selects the step of transmission mode to have:
Step 401, host computer system 28 detect the connection of a common interface bus 251, the storage card 202 (20) that judgement is connected supported the compatible transmission mode of a USB? if not, then continue execution in step 402.If then execution in step 412.
Step 412, the storage card 202 (20) that expression is connected is supported the USB transmission mode, therefore directly host computer system 28 and shared interface bus 252 (251) is set at a USB transmission mode.
Step 402, the storage card 202 that connected of expression is not supported the USB transmission mode, therefore will detect to connect storage card 202 be a mmc card, HS mmc card or SD card? if continue execution in step 403.If not, then get back to step 401, continue to wait for that sharing interface bus 251 can support the storage card of transmission mode to connect.
Step 403, expression storage card 202 will be supported MMC/HS MMC transmission mode or SD transmission mode, therefore, host computer system 28 will be assigned reset order and HS MMC/MMC initial order.
Step 404, does host computer system 28 have correct response with detection of stored card 202 to this HS MMC/MMC initial order? if continue execution in step 405.If not, execution in step 425 then.
Step 405 is carried out the supported protocol of HS MMC transmission mode and is linked up.
Step 406, does host computer system 28 have correct response with detection of stored card 202 to this HS MMC supported protocol? if then continue execution in step 407.If not, execution in step 425 then.
Step 407, the storage card 202 that expression is connected is supported HS MMC transmission mode, therefore directly host computer system 28 and shared interface bus 252 is set at a HS MMC transmission mode.
Step 425, the storage card 202 that representative is connected is not supported MMC/HS MMC transmission mode or HS MMC transmission mode, therefore, host computer system 28 will be assigned reset order and SD initial order.
Step 426, does host computer system 28 have correct response with detection of stored card 202 to this SD initial order? if continue execution in step 427.If not, execution in step 437 then.
Step 427, the storage card 202 that expression is connected is supported the SD transmission mode, therefore directly host computer system 28 and shared interface bus 252 is set at a SD transmission mode.
Step 437, the storage card 202 that representative is connected is only supported the MMC transmission mode, therefore, host computer system 28 will be assigned the MMC initial order.
Step 438, the storage card 202 that expression is connected is supported the MMC transmission mode, therefore directly host computer system 28 and shared interface bus 252 is set at a MMC transmission mode.
By above-mentioned selection step, host computer system 28 and shared interface bus 252 can be selected the transmission mode that institute's desire collocation is used easily, be a USB transmission mode, HS MMC transmission mode, SD transmission mode or MMC transmission mode, thereby can be under the situation of not using existing card reader, the storage card 202 of multiple different size agreement is used in collocation.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of claim of the present invention.