This Application claims priority of Taiwan Patent Application No. 101112747, filed on Apr. 11, 2012, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The present invention relates to a secure digital card (SD card) and an SD card system and operating method.
2. Description of the Related Art
Content Protection Recorded Media (CPRM) is a mechanism for controlling the copying, moving and deletion of a digital media. In conventional techniques, a card reader connecting an SD card to a host has to support CPRM for operating a CPRM mechanism over the SD card from the host side.
A Secure Digital (SD) card, and an SD card system and operating method are disclosed.
An SD card in accordance with an exemplary embodiment of the invention comprises a Flash memory and a controller. The Flash memory provides a data storage space and a Content Protection Recorded Media (CPRM) support space. The controller provides and executes a firmware. Thus, read/write commands, instructed by a host, to the CPRM support space, are regarded as security commands for operating a CPRM mechanism over the data storage space.
In another exemplary embodiment, an SD card system is shown and comprises the aforementioned SD card and a host. The host executes application software to operate the SD card.
An SD card operating method in accordance with an exemplary embodiment of the invention comprises the following steps: allocating a Flash memory of an SD card to provide a data storage space and a Content Protection Recorded Media (CPRM) support space in the Flash memory; and regarding read/write commands that a host issues for the CPRM support space as security commands for operating a CPRM mechanism over the data storage space.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description shows several exemplary embodiments carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
The SD card 102 comprises a Flash memory 110 and a controller 112. The Flash memory 110 is allocated to provide a data storage space 114 and a Content Protection Recorded Media (CPRM) support space 116. The controller 112 provides and executes a firmware (may be stored in a ROM of the controller 112) to regard read/write commands that the host 106 issues for the CPRM support space 116 as security commands (defined according to a CPRM protocol) for operating a CPRM mechanism over the data storage space 114.
As shown in
In space (Volume+1), the CPRM command control main table comprises:
In an exemplary embodiment, each byte of the ACMD control table 202 corresponds to one security command and is in the following byte format:
In an exemplary embodiment, a CPRM mechanism may be operated when the CPRM control code 208 is 0XCC. When the CPRM control code 208 is not 0XCC, a CPRM mechanism is forbidden to be operated.
As for the security command representative space (from space (Volume+2) to space (Volume+65)), security commands corresponding thereto are:
Based on the design of the CPRM support space 116,
Referring to
Referring to
In step S502, a read command is issued to the flash memory 110 for the first space cell (Volume+45), wherein the read command is regarded as the Get Media Key Block command (ACMD—43) to be executed according to the firmware of the SD card 102.
In step S504, a read command is issued to the flash memory 110 for the second space cell (Volume+46), wherein the read command is regarded as the Get Media ID command (ACMD—44) to be executed according to the firmware of the SD card 102.
In step S506, a write command is issued to the flash memory 110 for the third space cell (Volume+47), wherein the write command is regarded as the First Random Number Set command (ACMD—45) to be executed according to the firmware of the SD card 102.
In step S508, a read command is issued to the flash memory 110 for the fourth space cell (Volume+48), wherein the read command is regarded as the Second Random Number Get command (ACMD—46) to be executed according to the firmware of the SD card 102.
In step S510, a write command is issued to the flash memory 110 for the fifth space cell (Volume+49), wherein the write command is regarded as the Second Response Value Set command (ACMD—47) to be executed according to the firmware of the SD card 102.
In step S512, a read command is issued to the flash memory 110 for the sixth space cell (Volume+50), wherein the read command is regarded as the First Response Value Get command (ACMD—48) to be executed according to the firmware of the SD card 102.
Options for the operation performed in step S514 include:
1. Issue a command for the seventh space cell (Volume+51) of the Flash memory 110, wherein the issued command is regarded as the Change Secure Area command (ACMD—49) to be executed according to the firmware of the SD card 102;
2. Issue a command for the eighth space cell (Volume+40) of the Flash memory 110, wherein the issued command is regarded as the Secure Erase command (ACMD—38) to be executed according to the firmware of the SD card 102;
3. Issue a command for the ninth space cell (Volume+27) of the Flash memory 110, wherein the issued command is regarded as the Secure Write Multi-blocks command (ACMD—25) to be executed according to the firmware of the SD card 102;
4. Issue a command for the tenth space cell (Volume+28) of the Flash memory 110, wherein the issued command is regarded as the Secure Write Media Key Block command (ACMD—26) to be executed according to the firmware of the SD card 102; and
5. Issue a command for the eleventh space cell (Volume+20) of the Flash memory 110, wherein the issued command is regarded as the Secure Read Multi-blocks command (ACMD—18) to be executed according to the firmware of the SD card 102;
Note that SD card operating methods based on the aforementioned techniques are regarded as being within the scope of the invention. The operating method includes the following steps: allocating a flash memory of an SD card to provide a data storage space and a CPRM support space (referring to the space 114 and the space 116 of
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
| Number | Date | Country | Kind |
|---|---|---|---|
| 101112747 A | Apr 2012 | TW | national |
| Number | Name | Date | Kind |
|---|---|---|---|
| 7779064 | Phillips | Aug 2010 | B2 |
| 20060015713 | Rhoads | Jan 2006 | A1 |
| 20060185006 | Yu et al. | Aug 2006 | A1 |
| 20070136523 | Bonella et al. | Jun 2007 | A1 |
| 20070168564 | Conley et al. | Jul 2007 | A1 |
| 20090055562 | Ito | Feb 2009 | A1 |
| 20090055660 | Cheng | Feb 2009 | A1 |
| 20100281508 | Poder et al. | Nov 2010 | A1 |
| 20110119504 | Nishimura | May 2011 | A1 |
| 20120254629 | Zipperer et al. | Oct 2012 | A1 |
| 20130007393 | Taki | Jan 2013 | A1 |
| 20130198441 | Ito | Aug 2013 | A1 |
| 20140136855 | Ducharme et al. | May 2014 | A1 |
| Number | Date | Country |
|---|---|---|
| 200705197 | Feb 2007 | TW |
| 200910364 | Mar 2009 | TW |
| Entry |
|---|
| Office Action of corresponding TW application, published on Apr. 8, 2014. |
| Number | Date | Country | |
|---|---|---|---|
| 20130276130 A1 | Oct 2013 | US |