An artical "Recovering Data From a Broken SD Card Using Arduino" posted by EETimes, has taught us how to use Arduino open source in our daily life,expecially the use of SD Card.
Here are two methods for communicating with an SD card.
The typical method employed by your computer or most other devices is called SDIO (secure digital input output). SDIO allows for different methods of digital rights management as well as functional commands, such as write-protecting the card.
The other method of communication is through SPI (serial peripheral interface), a standard serial interface. Communication over SPI is much slower.
Severin Schols was aware of both of these methods, which is how he was able to retrieve data from a seemingly dead SD card. When his computer would no longer read it, he decided to attempt reading the SPI mode. To do this, he attached it to an Arduino clone using an SD card shield (expansion pack).
He started out just attempting to read the card information with a piece of code that came as an example with the Arduino. Surprisingly, the card information was displayed. This meant that even though his computer couldn't read it, the SPI interface was still functional. He proceeded to dump all the files off the card in hex format. At first an error prevented him from dumping all the files, but someone else pointed out that it was because he was not properly closing the files after he opened each one. Once the files were dumped as hex, he was able to use a quick python script to parse them.
He notes that there is another method that could dump the entire contents of the card in hex all at once, but for a 4 Gbyte card it could take days to complete.
All scripts that he used are available on his site. However, he probably just got really lucky that only the SDIO burned up, and not the SPI, too. You shouldn't count on this recovery method always working.
(from EETimes)
ICStation.com is an online store which specializes in all kinds of IC products, such as electronic devices and components, development modules, development boards, consumptive materials and so on.
Translate
订阅:
博文评论 (Atom)
-
Introduction Standard double panel design,fine workmanship, board size:38mm X 30mm Use ULN2003 drive chip,50...
-
Share from www.eetimes.com Since the coming of the Raspberry Pi Model B, single-board computers (SBCs) have become a prevalent force in th...
-
The Mega 2560 is a microcontroller board based on the ATmega2560 .It has 54 digital input/output pins (of which 14 can be used as PWM ou...
LED Rotating Globe Planetary Project for STEM Teaching and Soldering Learning
Explore ICStation Latest New Product - DIY Globe Planetary Motion Kit DIY Rotating Universe Model Soldering Practice Kit! The Flashing LE...
没有评论:
发表评论