Revision as of 10:51, 14 June 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:Retrieving memory card unique ID using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Tested with
Devices(s): All (S60 3rd Ed)
Platform(s): S60 3rd Edition, S60 3rd Edition FP1, S60 3rd Edition FP2
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Created: User:Technical writer 1 (August 23, 2007, updated November 13, 2007)
Last edited: hamishwillee (14 Jun 2012)


The unique serial number from the MMC card identification register (CID) can be retrieved with the following function (if supported by the media):

 TInt RFs::GetMediaSerialNumber( TMediaSerialNumber &aSerialNum, TInt aDrive );


RFs::GetMediaSerialNumber() returns 16 bytes (128 bits) which are a copy of the card's CID register, defined as follows:

Description Field Width CID bits
Manufacturer ID MID 8 [127:120]
OEM/Application ID OID 16 [119:104]
Product name PNM 40 [103:64]
Product revision PRV 8 [63:56]
Product serial number PSN 32 [55:24]
Reserved - 4 [23:20]
Manufacturing date MDT 12 [19:8]
CRC7 checksum CRC 7 [7:1]
Not used, always 1 - 1 [0:0]
This page was last modified on 14 June 2012, at 10:51.
53 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.