How To Read CID on SD card
If you are looking to read the CID number of an SD card, or extract the CID off an SD card then you’ve find this article very helpful. Some also call this “reading the PSN off the SD card” or reading the product serial number off the SD card.
Most phones and much of the software on phones will lock in to the CID number of a SD card. The CID number is a unique card identifier number that is unique to the card itself. The CID number is valuable because software developers and hardware developers can lock software to the unique number of the device thus eliminating the ability to pass along licensed software.
Reading the CID number from an SD card is not an easy task. It requires specific access codes to the index table of the memory card, and unless you know how to use the SD chipset of your card reader, chances are you wont get the number…or least the correct and accurate number.
Insert the card and look under /sys/block/mmcblk0/device/ (this location may change depending on your platform, it may be mmcblk1 or in a different location). Under this location you will see several attributes available that include the CID and CSD registers and the information inside it. Most common brands of SD cards will work with Primos cameras, but we do recommend that you use SanDisk SD cards. These cards are pre-formatted and will work with your camera right out of the package. With other brands, you may occasionally need to do a full reformat on the card before using it in your camera. To set a new serial number select ‘Set New Serial Number’ and proceed with serial number setting. The default serial number is: 122 b. To get a root shell Telnet to 192.168.171.2 you will be dropped to a root shell without providing login credentials. To stay in testmode at next reboot select ‘Set Repair Test Mode’.
What is the CID number of an SD card?
The CID register is 16 bytes long and contains a unique card identification number. It is programmed during card manufacturing and cannot be changed by SD Card hosts. The CID number is a compilation of information about the card, such as manufacturer, date manufactured, checksum total, GB size and more. Below is a table outlining all the items which make up the SD CID number.
The term 'serial number' is often seen as a synonym of service number; however, a serial number more accurately describes manufacture and product codes, rather than personnel identification. In the Canadian military, a 'serial number' referred to a unique number assigned each unit that mobilized for the Second World War. The Model Name and Serial Number are found in the battery cover or near the battery insert in most products. In case of waterproof digital camcorder, please check in side of Door-USB Lever. Samsung Notebook/ Netbook.
So with all this said, how do you read the CID number from an SD card? As we’ve mentioned it isn’t easy and it’s [more or less] hardware based. If you do enough searching on the internet you’ll find some home-brew code to read the CID numbers, but that’s only if you have the SD card or microSD card connected via an IDE bus to your host computer. This isn’t easy for everyone. There is clear evidence that using a USB to SD card reader will not get you the information you require, or at least accurate and correct information. Meaning most times the CID number generated is actually the serial number of the card reader itself, not the CID number of a specific SD card.
In addition, what if you are required to read the CID number off SD media in bulk? A single, one-at-a-time solution is not practical.
In my search to read the CID number from SD media, I cam across Nexcopy – a manufacturer of USB duplicator equipment and other flash memory equipment. Several models they carry are SD duplicators and microSD duplicators. With the secure digital duplicators part of their feature set includes reading CID numbers from SD media. The equipment can ready 20 cards at a time, 40 cards at a time, or 60 cards at a time, depending on the model. The duplicators will read the CID number and exported to a .csv file for import into other business functions. This configuration makes it quick and easy to obtain the CID number. Granted, the equipment is not designed for single use operation, but rather reading the CID of SD media in bulk quantity. Here is a screenshot of Nexcopy’s software reading 20 CID numbers:
I didn’t contact Nexcopy Incorporated for pricing of the equipment, but doing a quick search for the equipment shows me a price of about $1k for the smallest 20 target system and $3k for the largest, 60 target system.
With all this said, there is still no clear-cut method to read CID numbers off SD cards for the home-user, but maybe this article will at least explain why you haven’t found a good solution as of yet.
Change Micro Sd Card Serial Number
Tags: microsd, nexcopy, read cid, sd card
For my current project, I tried to read the SD Card serial number because the number is factory stamped and unchangeable, so it easily could be used to protect embedded firmware from being copied (1). The serial number is stored in the Card Identification Register (CID) which is read by ‘Command 10’ as stated in the SD Simplified Specifications. Unfortunately, it is not possible to read the CID of the card with a USB adapter — you need a ‘direct’ SD interface. My iMX233 based development board has 2 of them, so it was an easy task to improve our firmware to read the CID and extract the serial number, but how do I check if I get the correct information?
Reading SD-Card SID
Luckily the Linux kernel provides the CID via the SD and MMC Block Device Attributes so you may use a Linux device containing a direct SD interface like your Android phone or an embedded Linux board. Unfortunately, you cannot know the real path of the SD card in the /sys file system so I can only give some examples and you have to try out the actual path yourself.
For example, on my Samsung Galaxy Note running Gingerbread, there is a /sys/block/mmcblk0 soft link pointing to:
Once Visio is associated with your Microsoft Account, you no longer need the product key. It will always be linked to your account and you can re-download the app or manage your license from account.microsoft.com. The Microsoft Evaluation Center brings you full-featured Microsoft product evaluation software available for download or trial on Microsoft Azure. Evprod-app-3: RD00155DE8CD1A.
- Rendering networkx graphs or graphml files via Mermaid - November 22, 2019
- Yocto recipe compiling Qt apps with cmake - July 21, 2019
- Check if your crross-compiler GCC toolchain is supporting hard-float - October 25, 2018