CN102253809A - Composite memory card and control method thereof - Google Patents

Composite memory card and control method thereof Download PDF

Info

Publication number
CN102253809A
CN102253809A CN2010101755960A CN201010175596A CN102253809A CN 102253809 A CN102253809 A CN 102253809A CN 2010101755960 A CN2010101755960 A CN 2010101755960A CN 201010175596 A CN201010175596 A CN 201010175596A CN 102253809 A CN102253809 A CN 102253809A
Authority
CN
China
Prior art keywords
order
standard
storage card
response
effective
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.)
Pending
Application number
CN2010101755960A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN2010101755960A priority Critical patent/CN102253809A/en
Publication of CN102253809A publication Critical patent/CN102253809A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a composite memory card and a control method thereof. The composite memory card comprises an interface controller and a memory, wherein the interface controller is used for receiving a first command which is sent by a host after the composite memory card is powered on, receiving a second command which is sent by the host if the received first command is a valid command, replying corresponding response to the host if the received second command is the valid command which conforms to memory card specification, starting the parameter setting and bottom-layer software of the corresponding memory card specification, and setting the memory to conform to the corresponding memory card specification; and the memory is used for receiving and memorizing data. The composite memory card has the advantages that: various kinds of specifications are compatible; the difficulty of software transportation is reduced; data consistency can be kept among different software and hardware platforms; and the application range of the conventional equipment is expanded.

Description

A kind of compound storage card and control method thereof
Technical field
The present invention relates to the composite card field, relate in particular to a kind of compound storage card and control method thereof.
Background technology
SD standard (Secure Digital Specification, safe digital card), SDIO standard (SecureDigital Input/Output Specification, the secure digital input-output card) and MMC standard (MultiMedia Card Specification, multimedia storage card) be three kinds of standards that are most widely used in the present digital multimedia mobile hand-held device.The SD storage card, SDIO card and the mmc card that meet these three kinds of standards are widely used in the consumption electronic products such as digital camera, mobile phone, PDA, MP3/MP4 player.
Stipulated all in SD standard, SDIO standard and the MMC standard that the communication between main frame and the card finishes by order (Command, be called for short CMD) and response (Response is called for short R), main frame passes through the CMD access card, and cartoon is crossed corresponding responsive feedback main frame.
SD standard, SDIO standard and MMC standard are not quite similar to the definition of each CMD, so the SD main frame can only be visited the SD card, the SDIO main frame can only be visited the SDIO card, and the MMC main frame can only be visited mmc card, can not exchange visits between the two.Relation between them as shown in Figure 1, communication is invalid between the main frame of SD card and SDIO standard or MMC standard, and communication also is invalid between the main frame of SDIO card and SD standard or MMC standard, and communication also is invalid between the main frame of same mmc card and SD standard or SDIO standard.
Therefore, need a kind of technical scheme to make compound storage card compatible to SD standard, SDIO standard and three kinds of standards of MMC standard simultaneously.
Summary of the invention
Technical matters to be solved by this invention provides a kind of compound storage card and control method thereof, makes the compound storage card can compatible multiple standard, and can adjust automatically according to the main frame standard and self meet corresponding standard.
In order to solve the problems of the technologies described above, the invention provides a kind of control method of compound storage card, comprising:
After compound storage card powers on, receive first order that main frame sends; Judge if first order that receives is effectively order, then receive second order that main frame sends;
If described compound storage card is judged second order that receives and is effectively met the order of storage card standard, then to the host response respective response, starts the parameter setting and the bottom software of respective stored calliper model.
Preferably, the order that effectively meets the storage card standard that described compound storage card receives comprises: the effectively order of safe digital card SD standard, the order of effective secure digital input-output card SDIO standard or the order of efficient multimedia storage card MMC standard.
Preferably, when described compound storage card judged that the order of the effective SD standard that receives is effective ACMD41 order, then this compound storage card was that R3 responds to the response of host response, starts the parameter setting and the bottom software of adaptive SD standard.
Preferably, judging the order of the effective SDIO standard that receives when described compound storage card is effective CMD5 order, and then this compound storage card is the R4 response to the response of host response, starts the parameter setting and the bottom software of adaptive SDIO standard.
Preferably, judging the order of the effective MMC standard that receives when described compound storage card is effective CMD1 order, and then this compound storage card is the R3 response to the response of host response, starts the parameter setting and the bottom software of adaptive MMC standard.
In order to solve the problems of the technologies described above, the present invention also provides a kind of compound storage card, comprising: interface controller and storer, wherein,
Described interface controller is used for after compound storage card powers on, and receives first order that main frame sends; Judge if first order that receives is effectively order, then receive second order that main frame sends; Effectively meet the order of storage card standard if judge second order that receives,, start the parameter setting and the bottom software of respective stored calliper model, described storer is set meets respective stored calliper model then to the host response respective response;
Described storer is used for receiving and the storage data.
Preferably, the order that effectively meets the storage card standard that described interface controller receives is meant: the effectively order of safe digital card SD standard, the order of effective secure digital input-output card SDIO standard or the order of efficient multimedia storage card MMC standard.
Preferably, when described interface controller judged that the order of the effective SD standard that receives is effective ACMD41 order, then this interface controller was the R3 response to the response of host response, starts the parameter setting and the bottom software of adaptive SD standard;
Perhaps judging the order of the effective SDIO standard that receives when described interface controller is effective CMD5 order, and then this interface controller is the R4 response to the response of host response, starts the parameter setting and the bottom software of adaptive SDIO standard;
Perhaps judging the order of the effective MMC standard that receives when described interface controller is effective CMD1 order, and then this interface controller is the R3 response to the response of host response, starts the parameter setting and the bottom software of adaptive MMC standard.
Preferably, also comprise the I/O functional module, be connected with described interface controller, adopt the numeric security IO interface, compatible to SD IO standard is used for the function that described compound storage card is realized I/O, comprises the function of bluetooth, GPS or WLAN.
Preferably, described storer adopts one or more memory devices, and this memory device is erasable, non-volatile semiconductor storage unit.
Compared with prior art, using the compound storage card of self-adaptation of the present invention can be as common SD card by the identification of SD main frame and correct read-write and visit, also can be as the SDIO card of realizing special IO function (as bluetooth, GPS, WLAN etc.) by the identification of SDIO main frame and correct read-write and visit, also can be used to substitute common SD card, SDIO card and mmc card simultaneously as common mmc card by the identification of MMC main frame and correct read-write and visit.That is to say the same card, can be used to possess the equipment of MMC interface, also can be used for possessing the equipment of common SD interface, simultaneously also can be used for possessing the equipment of SDIO interface, reduced the difficulty of software transplanting, the consistance that can keep data between different hardware and software platforms has enlarged the range of application of existing device.
Description of drawings
Fig. 1 is the exchange visits synoptic diagram of relation of common memory card and respective host in the prior art;
Fig. 2 is the exchange visits synoptic diagram of relation of the compound storage card of self-adaptation and respective host among the present invention;
Fig. 3 is the structural representation of the compound storage card of self-adaptation among the present invention;
Fig. 4 is the process flow diagram of the self-regulating process of compound storage card among the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
As shown in Figure 2, the compound storage card of self-adaptation of SD storage specification, SDIO standard and MMC standard can be as common SD storage card by identification of SD main frame and correct read and write access, also can also can be discerned by the MMC main frame and correct read-write and visit simultaneously as the SDIO card of realizing special IO function (as bluetooth, GPS, WLAN etc.) by also correct read-write of SDIO main frame identification and visit as common mmc card.
As shown in Figure 3, a kind of compound storage card of the present invention comprises: interface controller, storer and I/O functional module, wherein,
Described interface controller is used for after compound storage card powers on, and receives first order that main frame sends; Judge that (first order can be CMD0:GO_IDLE, causes warm reset, and state is got back to IDLE STATE if first order that receives is effectively order.If CS signal=0 when blocking by warm reset, card will enter the SPI pattern so; This order need not to answer, and is that SD/MMC/SDIO calliper model is defined and professional fixing) then receive second order that main frame sends; Effectively meet the order of storage card standard if judge second order that receives,, start the parameter setting and the bottom software of respective stored calliper model, described storer is set meets respective stored calliper model then to the host response respective response;
Wherein, second order can be meant the order of effective safe digital card SD standard, the order of effective secure digital input-output card SDIO standard or the order of efficient multimedia storage card MMC standard, does not have any priority between the three.
Described storer is used for receiving and the storage data.Storer can adopt one or more memory devices usually, and this memory device is erasable, non-volatile semiconductor storage unit, as flush memory device (FlashMemory).
When described interface controller judges that the order of the effective SD standard that receives is effective ACMD41 order, then this interface controller is the R3 response to the response of host response, (wherein, the R3 response is SD_SEND_OP_CON Response, the response of feedback OCR register content is a SD standard major name) start the parameter setting and the bottom software of adaptive SD standard;
Perhaps judging the order of the effective SDIO standard that receives when described interface controller is effective CMD5 order, then this interface controller is the R4 response to the response of host response, (wherein, R4 response is IO_SEND_OP_COND Response, the response of feedback IO operating conditions content) start the parameter setting and the bottom software of adaptive SDIO standard;
Perhaps judging the order of the effective MMC standard that receives when described interface controller is effective CMD1 order, and then this interface controller is the R3 response to the response of host response, starts the parameter setting and the bottom software of adaptive MMC standard.
The I/O functional module is connected with described interface controller, adopts the numeric security IO interface, and compatible to SD IO standard is used for the function that described compound storage card is realized I/O, comprises the function of bluetooth, GPS or WLAN (WLAN).
Also can comprise the SD/SDIO/MMC interface, wherein, SD/SDIO/MMC interface one end is used for being connected with extraneous main frame, and the other end is used to connect described interface controller, and storer is connected by internal bus with the I/O functional module.
Interface connector or the golden finger of compatible to SD/SDIO/MMC adopted at the SD/SDIO/MMC interface.
Interface controller and SD/SDIO/MMC interface are together, finish report, SD/SDIO/MMC interface function and the compatibility of the transmission of adaptive process, data of SD/SDIO/MMC storage card and configuration, state, also finish simultaneously operation, as orders such as reading and writing, wiping and backups to storer and I/O functional module.
Interface controller compatible to SD standard, SDIO standard and MMC standard can be read and write standard according to main frame and adjust self automatically to meet corresponding standard.
As shown in Figure 4, the self-regulating process of compound storage card of the present invention mainly may further comprise the steps:
After step 410, compound storage card power on, receive first order (can be meant CMD0) that main frame sends;
Step 420, compound storage card judge that then execution in step 430, otherwise wait for if first order that receives is effectively order;
Step 430, compound storage card receive second order that main frame sends, judge if this second order is effective ACMD41, (wherein, ACMD41, full name is SD_APP_OP_COND, be a utility command, this order allows be stuck in returns OCR (operating condition register) to the CMD line in the answer) execution in step 440 then, otherwise execution in step 450;
Step 440, compound storage card start the parameter setting and the bottom software of adaptive SD standard to host response R3 response, storage card is set meets SD standard, process ends;
Step 450, compound storage card judge that then execution in step 460 if this second order is effective CMD5, otherwise execution in step 470;
Step 460, compound storage card start the parameter setting and the bottom software of adaptive SDIO standard to host response R4 response, storage card is set meets SDIO standard, process ends;
Step 470, compound storage card judge that then execution in step 480 if this second order is effective CMD1, otherwise, return step 430;
Step 480, compound storage card start the parameter setting and the bottom software of adaptive MMC standard to host response R3 response, storage card is set meets MMC standard, process ends.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. the control method of a compound storage card is characterized in that, comprising:
After compound storage card powers on, receive first order that main frame sends; Judge if first order that receives is effectively order, then receive second order that main frame sends;
If described compound storage card is judged second order that receives and is effectively met the order of storage card standard, then to the host response respective response, starts the parameter setting and the bottom software of respective stored calliper model.
2. control method as claimed in claim 1 is characterized in that,
The order that effectively meets the storage card standard that described compound storage card receives comprises: the effectively order of safe digital card SD standard, the order of effective secure digital input-output card SDIO standard or the order of efficient multimedia storage card MMC standard.
3. control method as claimed in claim 2 is characterized in that,
When described compound storage card judged that the order of the effective SD standard that receives is effective ACMD41 order, then this compound storage card was that R3 responds to the response of host response, starts the parameter setting and the bottom software of adaptive SD standard.
4. control method as claimed in claim 2 is characterized in that,
Judging the order of the effective SDIO standard that receives when described compound storage card is effective CMD5 order, and then this compound storage card is the R4 response to the response of host response, starts the parameter setting and the bottom software of adaptive SDIO standard.
5. control method as claimed in claim 2 is characterized in that,
Judging the order of the effective MMC standard that receives when described compound storage card is effective CMD1 order, and then this compound storage card is the R3 response to the response of host response, starts the parameter setting and the bottom software of adaptive MMC standard.
6. a compound storage card is characterized in that,
Comprise: interface controller and storer, wherein,
Described interface controller is used for after compound storage card powers on, and receives first order that main frame sends; Judge if first order that receives is effectively order, then receive second order that main frame sends; Effectively meet the order of storage card standard if judge second order that receives,, start the parameter setting and the bottom software of respective stored calliper model, described storer is set meets respective stored calliper model then to the host response respective response;
Described storer is used for receiving and the storage data.
7. compound storage card as claimed in claim 6 is characterized in that,
The order that effectively meets the storage card standard that described interface controller receives is meant: the effectively order of safe digital card SD standard, the order of effective secure digital input-output card SDIO standard or the order of efficient multimedia storage card MMC standard.
8. compound storage card as claimed in claim 7 is characterized in that,
When described interface controller judged that the order of the effective SD standard that receives is effective ACMD41 order, then this interface controller was the R3 response to the response of host response, starts the parameter setting and the bottom software of adaptive SD standard;
Perhaps judging the order of the effective SDIO standard that receives when described interface controller is effective CMD5 order, and then this interface controller is the R4 response to the response of host response, starts the parameter setting and the bottom software of adaptive SDIO standard;
Perhaps judging the order of the effective MMC standard that receives when described interface controller is effective CMD1 order, and then this interface controller is the R3 response to the response of host response, starts the parameter setting and the bottom software of adaptive MMC standard.
9. compound storage card as claimed in claim 6 is characterized in that,
Also comprise the I/O functional module, be connected with described interface controller, adopt the numeric security IO interface, compatible to SD IO standard is used for the function that described compound storage card is realized I/O, comprises the function of bluetooth, GPS or WLAN.
10. compound storage card as claimed in claim 6 is characterized in that,
Described storer adopts one or more memory devices, and this memory device is erasable, non-volatile semiconductor storage unit.
CN2010101755960A 2010-05-17 2010-05-17 Composite memory card and control method thereof Pending CN102253809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101755960A CN102253809A (en) 2010-05-17 2010-05-17 Composite memory card and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101755960A CN102253809A (en) 2010-05-17 2010-05-17 Composite memory card and control method thereof

Publications (1)

Publication Number Publication Date
CN102253809A true CN102253809A (en) 2011-11-23

Family

ID=44981096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101755960A Pending CN102253809A (en) 2010-05-17 2010-05-17 Composite memory card and control method thereof

Country Status (1)

Country Link
CN (1) CN102253809A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020134040A1 (en) * 2018-12-24 2020-07-02 华为技术有限公司 Memory card identification method and mobile device
CN111414125A (en) * 2018-12-18 2020-07-14 华为技术有限公司 Operation method of storage device and storage device
CN111428840A (en) * 2018-12-24 2020-07-17 华为技术有限公司 Function card identification method and mobile device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198424A1 (en) * 2002-11-13 2005-09-08 Eliyahou Harari Universal non-volatile memory card used with various different standard cards containing a memory controller
CN1794272A (en) * 2005-12-30 2006-06-28 无锡商炜科技有限公司 Format converting method capable of compatible multikind numberical multimedia storage card and its storage card
CN1804780A (en) * 2006-01-25 2006-07-19 骆建军 Adaptive memory card compatible to SD and MMC standard
CN1804779A (en) * 2006-01-20 2006-07-19 骆建军 Adaptive SD memory card
US20080257955A1 (en) * 2005-03-24 2008-10-23 Masaharu Adachi Nonvolatile Memory Card Adaptable to Plural Specifications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198424A1 (en) * 2002-11-13 2005-09-08 Eliyahou Harari Universal non-volatile memory card used with various different standard cards containing a memory controller
US20080257955A1 (en) * 2005-03-24 2008-10-23 Masaharu Adachi Nonvolatile Memory Card Adaptable to Plural Specifications
CN1794272A (en) * 2005-12-30 2006-06-28 无锡商炜科技有限公司 Format converting method capable of compatible multikind numberical multimedia storage card and its storage card
CN1804779A (en) * 2006-01-20 2006-07-19 骆建军 Adaptive SD memory card
CN1804780A (en) * 2006-01-25 2006-07-19 骆建军 Adaptive memory card compatible to SD and MMC standard

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RAJKAMAL: "《嵌入式系统 体系结构、编程与设计 第二版》", 1 March 2010, 清华大学出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414125A (en) * 2018-12-18 2020-07-14 华为技术有限公司 Operation method of storage device and storage device
WO2020134040A1 (en) * 2018-12-24 2020-07-02 华为技术有限公司 Memory card identification method and mobile device
CN111428840A (en) * 2018-12-24 2020-07-17 华为技术有限公司 Function card identification method and mobile device
CN111428842A (en) * 2018-12-24 2020-07-17 华为技术有限公司 Memory card identification method and mobile device
CN111428840B (en) * 2018-12-24 2023-03-28 华为技术有限公司 Function card identification method and mobile device
US11893436B2 (en) 2018-12-24 2024-02-06 Huawei Technologies Co., Ltd. Memory card identification method and mobile device

Similar Documents

Publication Publication Date Title
CN101454746B (en) Method for communication with a multi-function memory card
US20080189474A1 (en) Memory card and memory system having the same
US8850086B2 (en) SD switch box in a cellular handset
KR20060129804A (en) Flash memory device with mmc interface and memory system including the same
CN102253809A (en) Composite memory card and control method thereof
CN107291655B (en) SoC bootstrap IP circuit with APB bus interface
CN103870215B (en) USB solid-state disc firmware storage device
CN110795373B (en) I2C bus-to-parallel bus conversion method, terminal and storage medium
CN100423023C (en) Multiple interface self adaptive rsMMC memory card
CN100423024C (en) Multiple interface self adaptive mini SD memory card
CN102520878B (en) Method and system for visiting intelligent secure digital (SD) card
CN1804780A (en) Adaptive memory card compatible to SD and MMC standard
CN102142093A (en) Operation method and device for memory card
CN100422973C (en) Controller with dual interfaces based on single chip
CN100386776C (en) Self-adaptive microSD storage card of multi-interface
CN100373319C (en) Adaptive SD memory card
US7549594B2 (en) Electronic device having plurality of functional units and controller for controlling registers according to status of functional units
WO2012009996A1 (en) Memory device and smart-phone system
CN100592258C (en) Memory card supporting self start-up
CN201583987U (en) Self-adaptive micro SD memory card compatible to MS standard
CN102421004B (en) Debugging method and device for television software system
TW200731062A (en) Battery management chip and method of data accessing same
KR100882207B1 (en) Memory card including connector for other memory card independently interfacing host using MMC protocol
CN209514338U (en) NB-IoT communicates remote transmission device and charging pile
CN102222251B (en) High-speed low-power-consumption embedded memory card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111123