FORUMS
Remove All Ads from XDA

Read CID from SD via Laptop

85 posts
Thanks Meter: 10
 
By otech, Member on 7th March 2011, 11:25 AM
Post Reply Email Thread
13th March 2011, 06:47 AM |#11  
pedaah's Avatar
Senior Member
Flag Melbourne
Thanks Meter: 4
 
More
@OTech, no good here, Win7pro, 64 bit, Toshiba laptop with built in SD card reader. Used a 512 MB micro SD in a regular sd adapter, "no sd card found on a compatible device"
 
 
13th March 2011, 08:01 AM |#12  
Junior Member
Thanks Meter: 1
 
More
I've tried your and original code and it looks like NativeMethods.DeviceIoControl does not actually update SffdiskQueryDeviceProtocolData's instance leaving GUID in it empty => isSD returns false for actual SD card..
13th March 2011, 08:37 AM |#13  
Junior Member
Thanks Meter: 1
 
More
here's what original author commented on his tool:
"Works only with SD cards plugged into a reader attached directly to the pci bus, it doesn't work with usb readers, you need admin rights for the call, it needs to be compiled for x86 instead of AnyCPU, it's flaky..."
I was trying on my hp 2740p and apparently card reader isn't on pci bus. I gave it a shot on Win7x86 on Samsung Q35 (3 years old laptop) and it worked on it just as expected.
The Following User Says Thank You to nayato For This Useful Post: [ View ] Gift nayato Ad-Free
13th March 2011, 08:38 AM |#14  
OP Member
Australia
Thanks Meter: 10
 
More
Quote:
Originally Posted by pedaah

@OTech, no good here, Win7pro, 64 bit, Toshiba laptop with built in SD card reader. Used a 512 MB micro SD in a regular sd adapter, "no sd card found on a compatible device"

This is crazy, I developed this on a toshiba with x64.

I also have another tester for whom it worked straight away.
13th March 2011, 08:41 AM |#15  
OP Member
Australia
Thanks Meter: 10
 
More
Quote:
Originally Posted by nayato

here's what original author commented on his tool:
"Works only with SD cards plugged into a reader attached directly to the pci bus, it doesn't work with usb readers, you need admin rights for the call, it needs to be compiled for x86 instead of AnyCPU, it's flaky..."
I was trying on my hp 2740p and apparently card reader isn't on pci bus. I gave it a shot on Win7x86 on Samsung Q35 (3 years old laptop) and it worked on it just as expected.

Really?!

Thats bizarre if it worked and your reader isn't directly on pci. From what the original author wrote, the USB root device would receive the call instead of the reader.

So it produced a CID for you? Did it work? Was it 128bit?
13th March 2011, 08:51 AM |#16  
Junior Member
Thanks Meter: 1
 
More
Original app from jo0ls worked on Samsung Q35 with 32bit, neither of tools worked on 2740p with 64bit. Here's what I got:
\\.\PhysicalDrive1 G:\
--------------------
Raw CID Bytes: 7B-00-56-5A-3B-02-10-20-20-44-53-55-56-53-1C-00
--------------------
Manufacturer ID: 1c
OEM ID: SV
Product Name: USD
Product Revision: 1.0
Product Serial Number: 023b5a56
Manufacture Date: 11/2007
--------------------
Raw CSD Bytes: 00-40-96-9F-FF-B7-6D-CA-83-59-5F-32-00-2F-00-00
--------------------
CSD Version 2 bit value: CSD Version 1.0
Data Read Access Time 1 (TAAC): 20ms
Data Read Access Time 2 (NSAC): 0
Max Data Transfer Rate: 25Mbit/s
Card Command Classes: 010111110101
Max Read Data Block Length: 9
Partial Blocks For Read Allowed: True
Write Block Misalignment: False
Read Block Misalignment: False
DSR Implemented: False
Device Size: 3881
Max Read Current @ VDD Min: 35mA
Max Read Current @ VDD Max: 45mA
Max Write Current @ VDD Min: 35mA
Max Write Current @ VDD Max: 45mA
Device Size Multiplier: 15
Erase Single Block Enable: True
Erase Sector Size: 128
Write Protect Group Size: 32
Write Protect Group Enable: True
Write Speed Factor: 32
Max Write Data Block Length: 2^9
Partial Blocks For Write Allowed: False
File Format Group: False
Copy Flag (OTP): False
Permanent Write Protection: False
Temporary Write Protection: False
File Format: 0
13th March 2011, 08:55 AM |#17  
OP Member
Australia
Thanks Meter: 10
 
More
Awesome, glad to see it actually working on 32bit - there's hope yet.

So what do you think?

Drivers play a big part? Jo0ls seemed to elude to drivers being an issue.
13th March 2011, 12:09 PM |#18  
Junior Member
Thanks Meter: 1
 
More
Now I've successfully used this CID and made a gold card. I don't know what might be the cause here. Both readers have MS-issued drivers, the one in 2740p is dated as Jun 2006th - SDA Standard Compliant SD Host Controller. As both of drivers are generic I somewhat doubt that it's driver's fault but again - apparently they're different (x86 vs x64). I also believe that x64 version of Windows has more tight security (e.g. no way to just install unsigned driver without some tweakery) - maybe that has something to do with our issues.

Anyhow, thanks for your work and heads up on approach! I actually couldn't get my SD's CID using WinMo device so this is a relief for me
13th March 2011, 12:35 PM |#19  
Member
Flag Zug
Thanks Meter: 8
 
More
Wow, thank you very much. I've been having trouble with the CID. The WMPhone method seems to have been giving me a wrong number :S

It didnt work on any HP/Compaq SD card readers they all seem to have usb versions built in. worked great on an Acer Win7 32bit though!
14th March 2011, 01:11 AM |#20  
OP Member
Australia
Thanks Meter: 10
 
More
Great news guys, so I guess what we can take from this is that it's just totally luck as to whether the thing will work for you, and to try as many laptops as you can until you find one that works.


Given both you guys had success on 32bit systems, I will remove that requirement and emphasise the luck factor

Thanks for your detailed feedback too, most appreciated.
17th March 2011, 06:47 AM |#21  
Junior Member
Thanks Meter: 1
 
More
OMG Thanks a lot OP!!!!!!!!!!!!!!!
I first tried it on my toshiba, didn't work.
Then I tried it on my old laptop, it worked!!!!!!

FYI the laptop is IBM's T61 with built-in SD card reader, product id is 7663MC2, the OS is Windows 7 32Bit Home Premium.

update 1: I've tried three more SD cards from different brand, all works!
update 2: I tried the app on my neighbor's IBM X60, also worked. So I guess all the Thinkpad laptops with built-in SD card reader should work.

Thanks OP again!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes